Re: Improper array name validation for the 'mapfile' builtin

2014-11-18 Thread Chet Ramey
On 11/18/14, 12:50 AM, Eduardo A. Bustamante López wrote: > Hi Chet, > > It seems like the variable name validation for the mapfile builtin is a bit > wrong. I hope the patch below fixes it. Thanks for the report. The fix looks right. Chet -- ``The lyf so short, the craft so long to lerne.''

Improper array name validation for the 'mapfile' builtin

2014-11-17 Thread Eduardo A . Bustamante López
Hi Chet, It seems like the variable name validation for the mapfile builtin is a bit wrong. I hope the patch below fixes it. Demonstration: | dualbus@hp ...local/src/bash % : before patch | dualbus@hp ...local/src/bash % /bin/bash -c 'mapfile -t "a[\$(ls)]" <<< ""; declare -p'|grep -F '[$(' | d