Re: redirections preceded by a word with builtins inconsistent
From:
Chet Ramey
Subject:
Re: redirections preceded by a word with builtins inconsistent
Date:
Tue, 24 May 2016 13:41:32 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
On 5/24/16 12:09 PM, Dan Douglas wrote:
> On Tue, May 24, 2016 at 10:23 AM, Chet Ramey <chet.ramey@case.edu> wrote:
>> It's not that Posix `allows' a subshell, it requires a subshell
>> environment:
>
> Hm sorry I thought it was "may". This is kind of easy to confuse with
> all the other unspecified things about side-effects from assignments
> affecting subsequent assignments and commands when there's no command
> name.
Yeah. A subshell environment doesn't automatically mean a subshell, but
it means that changes in the subshell environment don't affect the parent.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/