On Mon, Apr 2, 2018 at 2:13 PM, Denys Vlasenko <vda.linux@xxxxxxxxxxxxxx> wrote: > I was trying some of the beautiful atrocities from one of earlier > Harald's emails and this one fails in current dash git: > > # x="''''"; echo "${x#"${x+''}"''}" > dash: 12: Syntax error: Missing '}' Another probably buggy case: cat <<EOF -\t-\\-\"-\'-\`-\--\z-\*-\?- `echo '-\t-\\-\"-\x-\`-\--\z-\*-\?-'` $(echo '-\t-\\-\"-\x-\`-\--\z-\*-\?-') EOF # bash heredoc_backslash.test -\t-\-\"-\'-`-\--\z-\*-\?- -\t-\-\"-\x-`-\--\z-\*-\?- -\t-\\-\"-\x-\`-\--\z-\*-\?- # dash heredoc_backslash.test -\t-\-\"-\'-`-\--\z-\*-\?- - -\-"-\x-`-\--\z-\*-\?- - -\-\"-\x-\`-\--\z-\*-\?- (Second and third line have \t expanded to tab. Mail-mangled to spaces, likely) Apart from \t, note that in second heredoc line there is a difference in how `echo '\"'` was handled: bash prints \", dash prints ". -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html