bug-bash
[Top][All Lists]
Advanced

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

Re: unset IFS and ${v=$*} CTLNUL leakage


From: Chet Ramey
Subject: Re: unset IFS and ${v=$*} CTLNUL leakage
Date: Tue, 5 Mar 2019 13:48:40 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

On 3/4/19 10:53 PM, Grisha Levit wrote:
> The changes in [1] to parameter_brace_expand_rhs (for the fix for [2])
> created (exposed?) an issue with ${var=$*} expansion when $* is
> multiple nulls and IFS is unset:

Yes, it was exposed, since the `=' operator takes some special handling
that affects state.


> This seems to be related to the special-casing of unset IFS at [3]
> which I don't really understand if an unset IFS is supposed to be the
> same as $' \t\n'.  Getting rid of that "IFS unset" case and having the
> "IFS set to non-null value" case apply to unset IFS seems to resolve
> this issue.

Thanks for the pointer to the fix.

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://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]