Bug#930805: dash: Dash strips out newline from multi-line string literal when line starts with an empty $()

2020-07-31 Thread Jakub Wilk
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

Bug#930805: dash: Dash strips out newline from multi-line string literal when line starts with an empty $()

2019-06-20 Thread Martin D.
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 "