• Flipper@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    2 months 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
      1
      ·
      2 months ago

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