• 0xKesh@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    9
    ·
    1 day ago

    Doesn’t the shebang at the top of a bash script negate that compatibility issue anyway?

    I remember years ago a YouTuber (I think it was Distrotube) making that same point about Fish, and I had this same thought back then lol.

    Although, the Fish scripting looks interesting. Might switch my default shell to Fish on my laptop for a bit, maybe I’m underestimating this lol

    • mbp@slrpnk.net
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      I have been using fish for years; no issues running scripts with shebangs. If you’re running something janky or homemade that lacks them, you pipe it into a new bash instance bash | ./...

    • uthredii@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Doesn’t the shebang at the top of a bash script negate that compatibility issue anyway?

      Yes. Fish is equal to ZSH when running scripts. But has more trouble if you are writing scripts you want other people to run (this is quite rare these days though, maybe just use a proper programming language if you want to write/share software).

      Fish is worth trying out! I have used both fish and ZSH both for around a year. Fish is a better experience overall. You don’t have to maintain a bunch of config files for the same level of features and it is generally faster.

    • sbird@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      I dunno, just stuff I’ve heard before. For 99% of people both are awesome, it’s just preference!