• Victor@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    12 hours ago

    fish isn’t and doesn’t try to be

    And it’s better for it. I’ll say it.

    Fish may be a little bit more verbose sometimes, but it trades in terseness for legibility and maintainability. I’ll come back to my uncommented scripts 6 months later and I can follow along no problem, fix or add whatever I need with minimal changes. There’s less spaghetti. More doing, less manual reading to check syntax. Love fish.

    • Laser@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      12 hours ago

      I’m not the biggest fan of bash either, there’s a reason I use fish, though I also like elvish for interactive use (though it’s rather young all things considered) and in maybe going to use YSH for my next script project as that shell is very small (2MB or so) and yet makes sense.

      • Victor@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        9 hours ago

        2 MB is every small indeed. Is there a reason you need such a small binary? Some kind of embedded scenario? Small device? RAM is expensive? 😅

        • Laser@feddit.org
          link
          fedilink
          arrow-up
          4
          ·
          9 hours ago

          No, but I feel bad when I need to deploy a big package for a bit of scripting.

          For example, nushell is about 160 MB installed… which I find a bit much. It’s fine on my desktop, but I also have machines where this would be a significant addition.