2 ms·
Using a linter is a good idea. It's not command substitution but the contentes in $variables will be expanded and splitted so you need to quote them or the new
by emj 2y ago
Using a linter is a good idea.
It's not command substitution but the contentes in $variables will be expanded and splitted so you need to quote them or the newlines will get lost.
$ touch asdd
$ foo=$(echo -e '\n\nboop\n*dd\n'); echo $foo "$foo"
boop asdd
boop
*dd
Try create files with new lines and globbing in them, and forget to use quotes around filenames. Chaos ensues.