• heeplr@feddit.de
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    14 days ago

    Shell scripts were a mistake. The weirdness you have to remember to safely stop executing when something fails is mind-boggling.

    nushell scripts aren’t shellscripts?

    • flying_sheep@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      14 days ago

      I usually write “POSIXy shell” but I thought that was clear from context this time.

      The problem is that exit statuses !=0 aren’t treated as error by default (with a way to turn that off for individual expressions). Instead you have to set multiple settings and avoid certain constructs in bash/ZSH/…

      Everything that works like a modern programming language by default is fine of course