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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/