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 `..`
Eric Blake wrote:
> > --- code
> > prefix() { sed -e "s/^/$1:/"; }
> > DASH_CODE() { :; }
> >
> > prefix A < > echo line 1
> > XXX
> > echo line 2)" && prefix DASH_CODE < > echo line 3
> > XXX
> > echo line 4)"
> > echo line 5
> > DASH_CODE
> >
> > --- bash 4.3.42 output:
>
[adding the Austin Group]
On 02/23/2016 03:07 PM, Oleg Bulatov wrote:
> Hello,
>
> trying to minimize a shell code I found an unobvious moment with heredocs and
> subshells.
Thanks for a cool testcase.
>
> Is it specified by POSIX how next code should be parsed? dash output for this
> code