kali_fornication@lemmy.world to linuxmemes@lemmy.world · 6 個月前it's just the worstlemmy.worldimagemessage-square190linkfedilinkarrow-up1426arrow-down148
arrow-up1378arrow-down1imageit's just the worstlemmy.worldkali_fornication@lemmy.world to linuxmemes@lemmy.world · 6 個月前message-square190linkfedilink
minus-squareunalivejoy@lemmy.ziplinkfedilinkarrow-up33·6 個月前Just whatever you do, don’t ln -s /bin/fish /bin/sh
minus-squareFlipper@feddit.orglinkfedilinkarrow-up5·6 個月前Well a shell script that can only run with Nash should include !# bin bash in the header.
minus-squareexuAlinkfedilinkEnglisharrow-up18·6 個月前You assume everyone writes shebangs correctly. Also ideally you’d use #!/usr/bin/env bash
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up11·6 個月前I see. Proceed to write #!/bin/env bash
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up4·6 個月前It 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.
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.
You assume everyone writes shebangs correctly. Also ideally you’d use
#!/usr/bin/env bashI see.
Proceed to write
#!/bin/env bashIt 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.Who the fuck would do that 😭