4 ms·
o. There is a new address@hidden family of operators to transform the value of `parameter'. Can anyone show an example of that? I'm not sure I understand
by agentgt 10y ago
o. There is a new address@hidden family of operators to transform the
value of `parameter'.
Can anyone show an example of that? I'm not sure I understand that feature.
- slipo 10y agoInteresting 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.
- db48x 10y agoIt was mangled by the anti-spam system, which does make it confusing to read.