Re: Capturing standard error using command substitution and redirection

2017-07-16 Thread Martijn Dekker
Op 03-07-17 om 15:18 schreef Joerg Schilling: > In our case, it is doubtful whether something like: > > var=value > > allows IO redirection at all, as there is no command. Note that we recently > discovered that var=$(cmd) does not set $? because there is no regular > command. > >

Re: Capturing standard error using command substitution and redirection

2017-07-03 Thread Joerg Schilling
Robert Elz wrote: > Date:Mon, 3 Jul 2017 11:45:30 +0200 > From:Joerg Schilling > Message-ID: > <595a123a.dp23fbcbtystwzcf%joerg.schill...@fokus.fraunhofer.de> > > > | This is not a bug, but a design

Re: Capturing standard error using command substitution and redirection

2017-07-03 Thread Robert Elz
Date:Mon, 3 Jul 2017 11:45:30 +0200 From:Joerg Schilling Message-ID: <595a123a.dp23fbcbtystwzcf%joerg.schill...@fokus.fraunhofer.de> | This is not a bug, but a design decision. One man's design decision is another man's bug

Re: Capturing standard error using command substitution and redirection

2017-07-03 Thread Joerg Schilling
Robert Elz wrote: > When the { } are there there's no question the redirect on the compound > command itself happens first, and then the contents of that are executed, > so then it all works. > > Personally I think the "may be reversed" (not even "shall be") is a mistake, >