Re: foo=$*: ^A and DEL are prefixed or removed

2018-01-04 Thread Chet Ramey
On 1/4/18 8:56 AM, Martijn Dekker wrote: > The latest development snapshot appears to have fixed this bug. > > However, it introduced a new one: if the positional parameters are > empty, then > > foo=$* > > produces a segfault. Hmmm...I thought that was part of the test suite. I'll take a l

Re: foo=$*: ^A and DEL are prefixed or removed

2018-01-04 Thread Martijn Dekker
The latest development snapshot appears to have fixed this bug. However, it introduced a new one: if the positional parameters are empty, then foo=$* produces a segfault. Thanks, - Martijn

Re: foo=$*: ^A and DEL are prefixed or removed

2017-12-17 Thread Martijn Dekker
Op 16-12-17 om 17:06 schreef Chet Ramey: > On 11/24/17 3:17 AM, Martijn Dekker wrote: >> Here's another corner-case bug with assigning $* to a variable (i.e.: >> foo=$*). If IFS is empty, the $* expansion removes any $'\001' (^A) and >> $'\177' (DEL) characters. If IFS contains a value, each ^A and

Re: foo=$*: ^A and DEL are prefixed or removed

2017-12-16 Thread Chet Ramey
On 11/24/17 3:17 AM, Martijn Dekker wrote: > Here's another corner-case bug with assigning $* to a variable (i.e.: > foo=$*). If IFS is empty, the $* expansion removes any $'\001' (^A) and > $'\177' (DEL) characters. If IFS contains a value, each ^A and DEL > character is prefixed by another $'\001

foo=$*: ^A and DEL are prefixed or removed

2017-11-24 Thread Martijn Dekker
Here's another corner-case bug with assigning $* to a variable (i.e.: foo=$*). If IFS is empty, the $* expansion removes any $'\001' (^A) and $'\177' (DEL) characters. If IFS contains a value, each ^A and DEL character is prefixed by another $'\001'. If IFS is unset, the bug does not show up at all