• floquant@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      11
      ·
      21 hours 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.

        • Nalivai@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          41 minutes ago

          The situation when people go on stackoverflow and just grab some shit from the top answer and just copy paste in their console is surprisingly normal. Not me, obviously, but like other people do it all the time.

      • Azzu@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        4
        ·
        14 hours 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.