24.02.2016, 13:58, "Joerg Schilling" <Joerg.Schilling@xxxxxxxxxxxxxxxxxxx>: > BTW: If I replace $(..) by `..` and feed the code to the original SVr4 Bourne > Shell, I get the same output as you got from bash. I would guess that the bash > output you added above is correct. The behavior of `..` with heredoc has also interesting corner cases: $ cat x.sh cat <<END ; echo `echo a echo b` hello END $ dash x.sh echo ba x.sh: 3: x.sh: hello: not found x.sh: 4: x.sh: END: not found $ bash x.sh hello a b $ On the one hand it reads heredoc, on the other hand it processes closing of the subshell. -- Oleg -- 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