bug-bash
[Top][All Lists]
Advanced

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

Re: Subsequent `declare -fp` and `.` incorrectly restore function with h


From: Chet Ramey
Subject: Re: Subsequent `declare -fp` and `.` incorrectly restore function with here string with pattern substitution
Date: Sun, 24 Jan 2010 14:31:46 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

On 1/24/10 11:46 AM, Arfrever Frehtes Taifersar Arahesis wrote:

> Bash Version: 4.0
> Patch Level: 37
> Release Status: release
> 
> Description:
>       Subsequent `declare -fp` and `.` incorrectly restore function with here 
> string with pattern substitution.
> 
> Repeat-By:
>       The following function is incorrectly restored:
>       here_string_test() {
>               : <<< "${var// /$'\n'}"
>       }
> 
>       Run the attached bash_test.sh script using this command:
>       env -i bash_test.sh

Thanks for the report.  In this case, the here-string does not need to be
requoted.

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]