4 ms·
Interesting addition ${PARAMETER@OPERATOR} parameter expansion. Taken from the new docs, see: https://www.reddit.com/r/linux/comments/52z087/bash_44_released/
by slipo 10y ago
Interesting addition ${PARAMETER@OPERATOR} parameter expansion. Taken from the new docs, see:
https://www.reddit.com/r/linux/comments/52z087/bash_44_released/ https://www.reddit.com/r/linux/comments/52z087/bash_44_relea...
- opk 10y agoI'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.