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 [email protected] http://cnswww.cns.cwru.edu/~chet/