bug-bash
[Top][All Lists]
Advanced

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

Re: Pipe using subshells, variables not saved


From: Chet Ramey
Subject: Re: Pipe using subshells, variables not saved
Date: Sat, 4 Mar 2017 13:12:22 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1

On 3/4/17 1:04 AM, Misaki wrote:
> Variables are not saved when using a pipe because both sides are in a
> subshell environment.

If you want this to happen, enable the `lastpipe' shell option.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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