@Albin7326@suppo.fi to Programmer Humor@lemmy.ml • 2 years agoDepression Is No Moresuppo.fiimagemessage-square93fedilinkarrow-up11.56Karrow-down136
arrow-up11.52Karrow-down1imageDepression Is No Moresuppo.fi@Albin7326@suppo.fi to Programmer Humor@lemmy.ml • 2 years agomessage-square93fedilink
minus-square@hisbaan@lemm.eelinkfedilink10•2 years agoI believe the reason is that bash is backwards compatible with sh and sh only has [ ], not [[ ]]
minus-square@twelvefloatinghands@lemmy.worldlinkfedilink7•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@Cysioland@lemmygrad.mllinkfedilink3•2 years agoFish is starting to get more POSIX compliant as of late, the error redirect is no longer ^ /dev/null but 2>/dev/null
minus-square@float@feddit.delinkfedilink5•2 years ago[ is a binary (sometimes a symlink) in /usr/bin. It’s /usr/bin/[ 🤓
deleted by creator
I believe the reason is that bash is backwards compatible with sh and sh only has [ ], not [[ ]]
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
[
is a binary (sometimes a symlink) in/usr/bin
. It’s/usr/bin/[
🤓[[ is not a POSIX shell feature.