bug-bash
[Top][All Lists]
Advanced

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

CTLESC and CTLNUL removed in certain contexts


From: Grisha Levit
Subject: CTLESC and CTLNUL removed in certain contexts
Date: Thu, 20 Sep 2018 20:23:02 -0400

(this is maybe too edge-case to be worth looking at)

A couple circumstances cause repeated instances of \001 and any
instances of \177 to be removed from as string:

$ a=$'<\001\001><\177\177>'
$ z=$(compgen -W "$a"); echo "${z@A}"
z=$'<\001><>'
$ declare -A A=(); printf -v "A[$a]" X; declare -p A
declare -A A=([$'<\001><>']="X" )

The latter is resolved if assoc_expand_once is turned on.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]