kali_fornication@lemmy.world to linuxmemes@lemmy.world · 9 hours agoit's just the worstlemmy.worldexternal-linkmessage-square86fedilinkarrow-up1225arrow-down123
arrow-up1202arrow-down1external-linkit's just the worstlemmy.worldkali_fornication@lemmy.world to linuxmemes@lemmy.world · 9 hours agomessage-square86fedilink
minus-squareunalivejoy@lemmy.ziplinkfedilinkarrow-up20·8 hours agoJust whatever you do, don’t ln -s /bin/fish /bin/sh
minus-squareFlipper@feddit.orglinkfedilinkarrow-up1·7 hours agoWell a shell script that can only run with Nash should include !# bin bash in the header.
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up1·3 hours agoIt still gives you basically no advantage compared to just making your terminal emulator launch fish by default. And well, it does give you the major disadvantage that scripts without shebang will fail.
minus-squareexu@feditown.comlinkfedilinkEnglisharrow-up5·5 hours agoYou assume everyone writes shebangs correctly. Also ideally you’d use #!/usr/bin/env bash
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up3·edit-24 hours agoI see. Proceed to write #!/bin/env bash
Just whatever you do, don’t
ln -s /bin/fish /bin/shWell a shell script that can only run with Nash should include !# bin bash in the header.
It still gives you basically no advantage compared to just making your terminal emulator launch
fishby default. And well, it does give you the major disadvantage that scripts without shebang will fail.You assume everyone writes shebangs correctly. Also ideally you’d use
#!/usr/bin/env bashI see.
Proceed to write
#!/bin/env bash