Albin Jose@suppo.fi to Programmer Humor@lemmy.ml · 9 months agoDepression Is No Moresuppo.fiimagemessage-square99fedilinkarrow-up11.81Karrow-down139
arrow-up11.77Karrow-down1imageDepression Is No Moresuppo.fiAlbin Jose@suppo.fi to Programmer Humor@lemmy.ml · 9 months agomessage-square99fedilink
minus-squarehisbaanlinkfedilinkarrow-up12·9 months agoI believe the reason is that bash is backwards compatible with sh and sh only has [ ], not [[ ]]
minus-squarefloat@feddit.delinkfedilinkarrow-up6·9 months ago[ is a binary (sometimes a symlink) in /usr/bin. It’s /usr/bin/[ 🤓
minus-squaretwelvefloatinghands@lemmy.worldlinkfedilinkarrow-up8·9 months agoFish might be good for interactivity, but in terms of scripting, just go straight to python. It’s not worth it.
minus-squareCysioland@lemmygrad.mllinkfedilinkarrow-up3·9 months 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