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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to