Re: heredoc and subshell

2016-02-24 Thread Oleg Bulatov
24.02.2016, 13:58, "Joerg Schilling" : > 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 `..`

heredoc and subshell

2016-02-23 Thread Oleg Bulatov
Hello, trying to minimize a shell code I found an unobvious moment with heredocs and subshells. Is it specified by POSIX how next code should be parsed? dash output for this code differs from bash and zsh. --- code prefix() { sed -e "s/^/$1:/"; } DASH_CODE() { :; } prefix A

Line continuation and variables

2014-08-26 Thread Oleg Bulatov
, Oleg Bulatov -- To unsubscribe from this list: send the line unsubscribe dash in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html