Re: CTLNUL leakage in bash-20190220

2019-03-11 Thread Chet Ramey
On 3/8/19 7:18 PM, Grisha Levit wrote: > On Tue, Mar 5, 2019 at 11:26 AM Chet Ramey 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 "<

Re: CTLNUL leakage in bash-20190220

2019-03-08 Thread Robert Elz
Date:Fri, 8 Mar 2019 19:18:29 -0500 From:Grisha Levit Message-ID: | bash removes the surrounding space in these cases (all other shells | print `< X >'): Must be something to do with null value for IFS. If IFS=Q (or anything else not containing space or X) it

Re: CTLNUL leakage in bash-20190220

2019-03-08 Thread Grisha Levit
On Tue, Mar 5, 2019 at 11:26 AM Chet Ramey wrote: > This is still a WIP, keep the test cases coming. bash removes the surrounding space in these cases (all other shells print `< X >'): IFS=; set -- X printf "<%s>" ${0+ "$@" } printf "<%s>" ${0+ $@ } printf "<%s>" ${0+ $

Re: CTLNUL leakage in bash-20190220

2019-03-05 Thread Chet Ramey
On 3/4/19 6:00 PM, Grisha Levit wrote: > Since the changes in [1], there's an issue with CTLNUL leakage in > ${param=word} when word has null strings, like: > > $ unset v; printf '<%q>' ${v= ''} > <$'\177'> Thanks for the report. This is still a WIP, keep the test cases coming. Chet --