[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unset IFS and ${v=$*} CTLNUL leakage
From: |
Grisha Levit |
Subject: |
Re: unset IFS and ${v=$*} CTLNUL leakage |
Date: |
Fri, 8 Mar 2019 18:09:50 -0500 |
A few more that produce \177 in the output, though I'm not sure if
these have defined output:
$ IFS=$' \t\n' # or any other IFS
$ set -- ''
$ recho ${v= "$*" }
<$'\177'>
$ IFS=''
$ set -- '' ''
$ recho ${v= "$*" }
<$' \177 '>
And also variations like the below all have \177 as well, but these
I'm pretty sure are undefined:
set -- ''
recho ${v= $@ }
recho ${v= $@"" }
set -- '' ''
recho ${v= $@ }
recho ${v= "$@" }
recho "${v= $@}"
recho ${v= "$@"}