On Sun, Apr 01, 2018 at 04:34:49PM +0200, Denys Vlasenko wrote: > Hi Herbert, > > Regarding: > > commit c166b718b496da63c4df7a0972df2fc6cd38256b > Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> > Date: Thu Mar 15 18:27:30 2018 +0800 > > parser: Fix backquote support in here-document EOF mark > > > I discovered that bash, on encountering `` in eof mark, > also treats eof mark as quoted. Testcase (initially > intended to test that `cmd` is not expanded, but taken literally): > > cat <<EO`true`F > heredoc1 > EO`false`F > EO`true`F > echo Ok1:$? > > $ bash heredoc.test > heredoc1 > EO`false`F > Ok1:0 This looks like a clear bug in bash. POSIX defines quoting as backslash, single quotes, or double quotes. Back quotes are not included. Every shell other than bash behaves like dash. So I'm not changing this. 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