$() Command Substitution in Bash vs in Zsh
Command Line
Zsh
Bash
$() concatenates the results into one single line in bash, but not in zsh.
A simple learning today: when using $()
in Bash, it concatenates the outputs into one single line, while in Zsh, it does not seem to do so.
In bash
outputs something like
But when the same commands are executed in Zsh, I got
with the line breaks preserved.