On 2/23/10 4:23 AM, [email protected] wrote: > Description: > I would have expected the output to be 2 in both cases. My mistake or > yours? :-) > > Repeat-By: > a=1; echo foo;{ a=2; }; echo $a # output: 2 > a=1; echo foo|{ a=2; }; echo $a # output: 1
Yours. Please read the Bash FAQ, question E4.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
