bug-bash
[Top][All Lists]
Advanced

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

Re: bash crashes when the REPLY variable is read only and the 'select' b


From: Chet Ramey
Subject: Re: bash crashes when the REPLY variable is read only and the 'select' builtin is used.
Date: Wed, 14 Jan 2015 16:28:22 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 1/14/15 1:10 PM, Etherial Raine wrote:

> Bash Version: 4.3
> Patch Level: 11
> Release Status: release
> 
> Description:
>         Using select after making the variable 'REPLY' readonly via
> 'readonly REPLY', bash will crash.
> 
> Repeat-By:
>           
> ----- snapshot starts -----
> 
> gabriel@larnica:~$ exec /usr/bin/env -i /bin/bash --norc
> bash-4.3$ readonly REPLY
> bash-4.3$ select TEST_VALUE in TEST_ITEM1 TEST_ITEM2 TEST_ITEM3; do echo
> "Result: $TEST_VALUE"; break; done
> 1) TEST_ITEM1
> 2) TEST_ITEM2
> 3) TEST_ITEM3
> #? 1
> bash: REPLY: readonly variable
> 
> 
> Warning: Program '/bin/bash' crashed.

Thanks for the report.  This will be fixed in the next release of bash.

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]