• Flipper@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      11 hours ago

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

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

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

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 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.