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