[Top][All Lists]

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

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

From: Chet Ramey
Subject: Re: foo=$*: ^A and DEL are prefixed or removed
Date: Sat, 16 Dec 2017 12:06:52 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

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'. If IFS is unset, the bug does
> not show up at all.

Thanks for the report. I'll fix this for the next version.

``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]