kali_fornication@lemmy.world to linuxmemes@lemmy.world · 1 day agoit's just the worstlemmy.worldimagemessage-square145fedilinkarrow-up1345arrow-down137
arrow-up1308arrow-down1imageit's just the worstlemmy.worldkali_fornication@lemmy.world to linuxmemes@lemmy.world · 1 day agomessage-square145fedilink
minus-squareFlipper@feddit.orglinkfedilinkarrow-up3·22 hours agoWell a shell script that can only run with Nash should include !# bin bash in the header.
minus-squareexu@feditown.comlinkfedilinkEnglisharrow-up12·20 hours agoYou assume everyone writes shebangs correctly. Also ideally you’d use #!/usr/bin/env bash
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up8·edit-219 hours agoI see. Proceed to write #!/bin/env bash
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up3·18 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.
Well 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.