bug-bash
[Top][All Lists]
Advanced

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

Re: Trap variable scope


From: Chet Ramey
Subject: Re: Trap variable scope
Date: Sat, 15 Dec 2012 19:07:39 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

On 11/2/12 10:48 AM, Nikolai Kondrashov wrote:
> Hi everyone,
> 
> I've encountered a very strange behavior regarding variable scope and traps,
> which looks very much like a bug.

This will be fixed, to the extent that identical blocks of code like the
two below will do the same thing, in the next release.  The problem was
the code that runs the command for `bash -c' was not treating the jump on
ERREXIT identically to the main reader loop.

Chet

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



reply via email to

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