• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 days ago

    When is this a problem? What scripts don’t use a shebang and/or why does using sh call fish instead of bash or dash?

    I have a mild dislike of fish because a few substitutions are different enough that my muscle memory isn’t there. (But I also haven’t put in serious effort to learn them.)

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 days ago

        Have you run into a specific problem or is this just a hypothetical you’re worried about. I see this a lot but haven’t ever actually run into it being a concern. If you run a script with #!/bin/sh from a Fish shell, it won’t use Fish, it will use whatever you have sh pointing to. (Which shouldn’t be Fish, it’s usually bash or dash.)

        • Mwa@thelemmy.club
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 days ago

          I ran into issues on fish,i don’t remember what they are but I think it’s no shebang