Control: tags -1 + fixed-upstream
* Martin D. , 2019-06-20, 19:22:
echo "
$(echo '') hello
$(echo '') world"
will output " hello world", when other shells I've tried
(zsh, bash, ksh) all output:
"
hello
world"
This was fixed upstream in v0.5.11:
https://git.kernel.org/pub/scm/utils/dash/dash
Package: dash
Version: 0.5.7-4+b1
Severity: normal
Dear Maintainer,
In multi-line string literals, a line which starts with a $()-style
subshell which outputs an empty string will have its trailing newline
stripped. For example, this code:
echo "
$(echo '') hello
$(echo '') world"
will output "
2 matches
Mail list logo