Re:Bash 4.4 released
by agentgt on Friday September 16, 2016 @11:09AM
(#12514513)
Can anyone show an example of that? I'm not sure I understand that feature.
[ Parent
| on HN ]
Interesting addition ${PARAMETER@OPERATOR} parameter expansion. Taken from the new docs, see:
https://www.reddit.com/r/linux/comments/52z087/bash_44_relea...
I'm not sure how wise that is. It doesn't exactly lead to readable scripts. Zsh has had the equivalent feature with the syntax ${(operator)parameter) for over two decades so plenty of time for more operators to be added. It is very powerful but worse than perl for code that looks like line noise.