bug-bash
[Top][All Lists]
Advanced

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

Re: about one feature in V4.2 against V4.1


From: Chet Ramey
Subject: Re: about one feature in V4.2 against V4.1
Date: Wed, 16 Jan 2013 21:40:50 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 1/15/13 11:30 AM, DJ Mills wrote:

> I believe that's referring to var=value command, as in the syntax to export
> a variable into "command"s environment.
> 
> readonly a=3
> a=2 echo foo

I believe this is the bug:

set -o posix
readonly a=0
a=1 command : 2>/dev/null # or use true in place of command :
readonly b=0
echo after

bash-4.1 exited without getting to the `echo after', which is clearly
wrong.  The original version came from FreeBSD's sh regression test suite.
I thought the change in bash-4.2 fixed the problem, but I now think
another change masked the problem without fixing it.  (Try it, it's still
broken in bash-4.2.)

I've fixed the problem and the fix will be in the next release.

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]