Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14615 > unrolled thread

CTLESC and CTLNUL removed in certain contexts

Started byGrisha Levit <grishalevit@gmail.com>
First post2018-09-20 20:23 -0400
Last post2018-09-20 20:23 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug


Contents

  CTLESC and CTLNUL removed in certain contexts Grisha Levit <grishalevit@gmail.com> - 2018-09-20 20:23 -0400

#14615 — CTLESC and CTLNUL removed in certain contexts

FromGrisha Levit <grishalevit@gmail.com>
Date2018-09-20 20:23 -0400
SubjectCTLESC and CTLNUL removed in certain contexts
Message-ID<mailman.1052.1537489400.1284.bug-bash@gnu.org>
(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.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web