fish, the friendly interactive shell, is a commandline shell intended to be interactive and user-friendly.

fish is intentionally not fully POSIX compliant, it aims at addressing POSIX inconsistencies (as perceived by the creators) with a simplified or a different syntax. This means that even simple POSIX compliant scripts may require some significant adaptation or even full rewriting to run with fish.

Source

  • thevoidzero@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    1 day ago

    Then you’re just running bash scripts with bash. You’re not running bash scripts with fish.

      • bitwolf@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        23 hours ago

        Exactly, use the shell you like (nushell in my case), write POSIX scripts for maintainability, and use shebangs so you don’t have to think about it.

        If you like fish but don’t use it as your login shell because it’s not POSIX you’re missing the point of the shebang

        • lilith267@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          4
          ·
          9 hours ago

          Write POSIX scripts for portability*, maintainability doesn’t depend much on the shell

          POSIX for the system, Fish for the interaction is how I like my OS :3