[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: environment
From: |
Pierre Gaston |
Subject: |
Re: environment |
Date: |
Fri, 13 Feb 2009 12:34:10 +0200 |
On Fri, Feb 13, 2009 at 12:26 PM, Antonio Macchi
<antonio_macchi@alice.it> wrote:
>
> $ declare +x x
>
> $ x=one
>
> $ ( echo $x; x=two; echo $x )
> one
> two
>
>
>
> subshell inherits "x"?
> is this behavior coherent?
The environment is designed to be inherited.
The subshell even inherits the shell variables.
I 'm not sure what causes you trouble here or what it could be incoherent with?
- environment, Antonio Macchi, 2009/02/13
- Re: environment,
Pierre Gaston <=
- Message not available
- Re: environment, Chet Ramey, 2009/02/13