[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ''"$@" expansion
From: |
Chet Ramey |
Subject: |
Re: ''"$@" expansion |
Date: |
Wed, 27 Jul 2016 15:15:54 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 5/12/16 7:37 PM, Grisha Levit wrote:
> Thanks for the pointer. Looking at that interpretation
> (http://austingroupbugs.net/view.php?id=888), I noticed that it includes
> one case that bash is not handling correctly:
>
> If there are no positional parameters, the expansion of |@| shall
> generate zero fields […] however, if the expansion is embedded within a
> word which contains one or more other parts that expand to a quoted
> null string, these null string(s) shall still produce an empty field […]
>
> The provided example is:
>
> |set -- printf '[%s]\n' foo ''"$@" *[foo] []* |
>
> (Bash just prints |[foo]|).
Thanks for the report. This will be fixed in bash-4.4.
> The attached exp9.sub and exp.right could be used for testing all the
> examples from the interpretation if desired. I removed the test cases that
> included undefined behavior.
Thanks, I'll take a look at adding it to the test suite.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: ''"$@" expansion,
Chet Ramey <=