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:
>