• Flipper@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      2 天前

      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
        17
        ·
        2 天前

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

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 天前

        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.