bug-bash
[Top][All Lists]
Advanced

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

Re: Bug? in bash setlocale implementation


From: Chet Ramey
Subject: Re: Bug? in bash setlocale implementation
Date: Tue, 21 Feb 2012 19:52:53 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 2/21/12 3:51 AM, John Kearney wrote:

> Bash Version: 4.2
> Patch Level: 10
> Release Status: release
> 
> Description:
>   Basically if setting the locale fails variable should not be changed.

I disagree.  The assignment was performed correctly and as the user
specified.  The fact that a side effect of the assignment failed should
not mean that the assignment should be undone.

I got enough bug reports when I added the warning.  I'd get at least as
many if I undid a perfectly good assignment statement.

I could see setting $? to a non-zero value if the setlocale() call fails,
but not when the shell is in posix mode.

Chet

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



reply via email to

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