On Fri, Feb 13, 2009 at 12:26 PM, Antonio Macchi <antonio_mac...@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?