On Mon, Apr 02, 2018 at 03:48:46PM +0200, Denys Vlasenko wrote: > > 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 ". FWIW ksh93 does the same thing. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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