Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you haven’t tried scripting in zsh, I’d give it a go. zsh has a lot of safety improvements and quality of life features.

https://news.ycombinator.com/item?id=22029662



It's also subject to many of the same footguns as Bash so I'd put that into the 2nd camp (re my previous post).

Not that I'm taking anything away from zsh. It is a nice shell. But I think we can do even better considering how dependant we still are on shells for day to day stuff.


> Zsh had arrays from the start, and its author opted for a saner language design at the expense of backward compatibility. In zsh (under the default expansion rules) $var does not perfom word splitting; if you want to store a list of words in a variable, you are meant to use an array; and if you really want word splitting, you can write $=var.

https://unix.stackexchange.com/a/26672


I realize that it has similar footguns, however reading through their info pages, I was surprised by how many they just decided to fix, unless you explicitly turn on compatibility mode.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: