bug-bash
[Top][All Lists]
Advanced

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

Re: CTLNUL leakage in bash-20190220


From: Chet Ramey
Subject: Re: CTLNUL leakage in bash-20190220
Date: Mon, 11 Mar 2019 11:20:52 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.3

On 3/8/19 7:18 PM, Grisha Levit wrote:
> On Tue, Mar 5, 2019 at 11:26 AM Chet Ramey <address@hidden> wrote:
>> This is still a WIP, keep the test cases coming.
> 
> bash removes the surrounding space in these cases (all other shells
> print `< X >'):

Thanks for the report.

> 
>     IFS=; set -- X
>     printf "<%s>" ${0+ "$@" }
>     <X>
>     printf "<%s>" ${0+ $@ }
>     <X>
>     printf "<%s>" ${0+ $* }
>     <X>

It has to do with $@ and $* and null IFS; any other combination works fine.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

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