Albin Jose to Programmer [email protected] • 1 year agoDepression Is No Moresuppo.fiimagemessage-square99fedilinkarrow-up11.8Karrow-down139
arrow-up11.76Karrow-down1imageDepression Is No Moresuppo.fiAlbin Jose to Programmer [email protected] • 1 year agomessage-square99fedilink
minus-square@[email protected]linkfedilink11•1 year agoI believe the reason is that bash is backwards compatible with sh and sh only has [ ], not [[ ]]
minus-square@[email protected]linkfedilink6•1 year ago[ is a binary (sometimes a symlink) in /usr/bin. It’s /usr/bin/[ 🤓
minus-square@[email protected]linkfedilink8•1 year 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]linkfedilink3•1 year agoFish is starting to get more POSIX compliant as of late, the error redirect is no longer ^ /dev/null but 2>/dev/null
I believe the reason is that bash is backwards compatible with sh and sh only has [ ], not [[ ]]
[
is a binary (sometimes a symlink) in/usr/bin
. It’s/usr/bin/[
🤓Removed by mod
Fish might be good for interactivity, but in terms of scripting, just go straight to python. It’s not worth it.
Fish is starting to get more POSIX compliant as of late, the error redirect is no longer
^ /dev/null
but2>/dev/null