[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: environment
From: |
Chet Ramey |
Subject: |
Re: environment |
Date: |
Fri, 13 Feb 2009 12:09:30 -0500 |
User-agent: |
Thunderbird 2.0.0.19 (Macintosh/20081209) |
Antonio Macchi wrote:
>
> $ declare +x x
>
> $ x=one
>
> $ ( echo $x; x=two; echo $x )
> one
> two
>
>
>
> subshell inherits "x"?
> is this behavior coherent?
User-specified subshells execute in an environment that is a duplicate
of the parent shell environment, with a couple of exceptions (traps).
It's in the documentation, under COMMAND EXECUTION ENVIRONMENT.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- environment, Antonio Macchi, 2009/02/13
- Re: environment, Pierre Gaston, 2009/02/13
- Message not available
- Re: environment,
Chet Ramey <=