Re:Bash $* and $@ (2017)
by fiddlerwoaroof on Sunday January 12, 2020 @05:22PM
(#22029978)
> 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.
Re:Bash $* and $@ (2017)
by fiddlerwoaroof on Sunday January 12, 2020 @05:21PM
(#22029969)
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.
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.