[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: Subsequent `declare -fp` and `.` incorrectly restore function with here string with pattern subs
From: Chet Ramey <chet.ramey () case ! edu>
Date: 2010-01-24 19:31:46
Message-ID: 4B5CA022.3050307 () case ! edu
[Download RAW message or body]
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic