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 `..`
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
, 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