• Flipper@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      Well a shell script that can only run with Nash should include !# bin bash in the header.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        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.

      • exu@feditown.com
        link
        fedilink
        English
        arrow-up
        5
        ·
        5 hours ago

        You assume everyone writes shebangs correctly. Also ideally you’d use #!/usr/bin/env bash