|
From: | Ilkka Virta |
Subject: | Re: set $'\001'; v=$* converted $'\001' to $'\001\001' |
Date: | Mon, 15 Jan 2018 10:54:32 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 15.1. 08:26, Clark Wang wrote:
See following example: [STEP 100] # echo $BASH_VERSION 4.4.12(4)-release [STEP 101] # set -- $'\001' [STEP 102] # v=$* [STEP 103] # printf '%q\n' "$v" $'\001\001' [STEP 104] #
That looks like the same issue as this one from November: Subject: foo=$*: ^A and DEL are prefixed or removed http://lists.gnu.org/archive/html/bug-bash/2017-11/msg00107.html If I read the commit message correctly, this looks like a fix for it: http://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=32dc2bf525399a80ef098bcf852331bc276c7ce8 -- Ilkka Virta / itvirta@iki.fi
[Prev in Thread] | Current Thread | [Next in Thread] |