• @[email protected]
    link
    fedilink
    1
    edit-2
    6 months 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?

    • @[email protected]
      link
      fedilink
      16 months 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