3 ms·
The trickiest part of Bash I know is that "$(command)" results in the truncation of the output of the command before the newline. It's both handy and damning de
by mehrdadn 9y ago
The trickiest part of Bash I know is that "$(command)" results in the truncation of the output of the command before the newline. It's both handy and damning depending on what you're trying to do.
- bewuethr 9y agoI don't think that's correct, do you have an example? This works for me: $ var=$(echo $'a\nb') $ echo "$var" a b