• Mwa@thelemmy.club
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      edit-2
      1 day ago

      how about if its not in a sh file,its common for scripts to use sh or bash instead. but am just gonna stick to ZSH anyways

      • Hawke@lemmy.world
        link
        fedilink
        arrow-up
        17
        ·
        1 day ago

        Linux doesn’t generally use extensions to decide what shell to use, so it doesn’t matter if it’s an sh file or not.

        If it uses bash of course you can substitute #!/bin/bash

        And of course you can use whatever shell you want, just saying that POSIX-compliance is not really relevant since the script can specify what shell it needs.