Hacker News new | ask | show | jobs
by slipo 3562 days ago
Interesting addition ${PARAMETER@OPERATOR} parameter expansion. Taken from the new docs, see:

https://www.reddit.com/r/linux/comments/52z087/bash_44_relea...

1 comments

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.