[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval in functions in pipelines doesn't set variables globally
From: |
Chet Ramey |
Subject: |
Re: eval in functions in pipelines doesn't set variables globally |
Date: |
Mon, 13 Feb 2006 11:34:05 -0500 |
User-agent: |
Thunderbird 1.5 (Macintosh/20051201) |
> Machine Type: sparc-sun-solaris2.8
>
> Bash Version: 3.1
> Patch Level: 0
> Release Status: release
>
> Description:
> Normally, the eval builtin used in functions to set variables
> makes these variables available globally otutside the function.
> However, when the function gets input from a pipline, the variables
> are set only locally.
Read the Bash FAQ, question E4.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong. No day but today.
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/