bug-bash
[Top][All Lists]
Advanced

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

Re: array unchanged when output of function is piped with '|'


From: Paul Jarc
Subject: Re: array unchanged when output of function is piped with '|'
Date: Mon, 19 Nov 2001 13:54:32 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

Arnulf Striepecke <tulf@gmx.de> wrote:
> Changing a global array in a function, where it is exported as well,
> has no effect on array's values if the output of that function is
> piped with '|'

This is related to FAQ entry E4.  Each element of a pipeline is run in
a separate process; variable assignments in one element cannot affect
other elements, nor the main shell.


paul



reply via email to

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