bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pipe with list seems to clobber variables


From: Chet Ramey
Subject: Re: pipe with list seems to clobber variables
Date: Wed, 20 Dec 2000 10:29:56 -0500

> Machine Type: i686-pc-cygwin
> 
> Bash Version: 2.04
> Patch Level: 0
> Release Status: release
> 
> Description:
> 
>    if I have a list of commands, and there's a pipe anywhere in there,
>    any variables set in the list seem to get erased.

Each element of a pipeline is run in a separate process, not the calling
shell.  A subprocess cannot affect its parent's environment.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]