Albin7326@suppo.fi to Programmer Humor@lemmy.ml · 1 year agoDepression Is No Moresuppo.fiimagemessage-square97fedilinkarrow-up11.8Karrow-down139
arrow-up11.76Karrow-down1imageDepression Is No Moresuppo.fiAlbin7326@suppo.fi to Programmer Humor@lemmy.ml · 1 year agomessage-square97fedilink
minus-squarehisbaan@lemm.eelinkfedilinkarrow-up11·1 year agoI believe the reason is that bash is backwards compatible with sh and sh only has [ ], not [[ ]]
minus-squarefloat@feddit.delinkfedilinkarrow-up6·1 year ago[ is a binary (sometimes a symlink) in /usr/bin. It's /usr/bin/[ 🤓
minus-squaretwelvefloatinghands@lemmy.worldlinkfedilinkarrow-up8·1 year agoFish might be good for interactivity, but in terms of scripting, just go straight to python. It's not worth it.
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.