• floquant@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    8
    ·
    5 days ago

    No, they are executed according to the shebang on the first line, which is usually bash. If it is missing, it will default to the current shell.

    • Azzu@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      5 days ago

      That’s true, but I definitely use fish as my default shell and when it runs a script without shebang it automatically runs it with bash. Thus I assume that’s the fish default to make your scripts work.

      • floquant@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        4 days ago

        Being more POSIX-compatible by further breaking POSIX spec is an ok choice to make in this case imo, but I think that’s a somewhat important detail to know :)