Albin Jose to Programmer [email protected] • 2 years agoDepression Is No Moresuppo.fiimagemessage-square103fedilinkarrow-up11.76K
arrow-up11.76KimageDepression Is No Moresuppo.fiAlbin Jose to Programmer [email protected] • 2 years agomessage-square103fedilink
minus-square@[email protected]linkfedilink9•2 years agoI believe the reason is that bash is backwards compatible with sh and sh only has [ ], not [[ ]]
minus-square@[email protected]linkfedilink5•2 years agoSolution: fuck backwards compatibility and use fish
minus-square@[email protected]linkfedilink7•2 years agoFish might be good for interactivity, but in terms of scripting, just go straight to python. It’s not worth it.
minus-square@[email protected]linkfedilink5•2 years ago[ is a binary (sometimes a symlink) in /usr/bin. It’s /usr/bin/[ 🤓
I believe the reason is that bash is backwards compatible with sh and sh only has [ ], not [[ ]]
Solution: fuck backwards compatibility and use fish
Fish might be good for interactivity, but in terms of scripting, just go straight to python. It’s not worth it.
[
is a binary (sometimes a symlink) in/usr/bin
. It’s/usr/bin/[
🤓