Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14615 > unrolled thread
| Started by | Grisha Levit <grishalevit@gmail.com> |
|---|---|
| First post | 2018-09-20 20:23 -0400 |
| Last post | 2018-09-20 20:23 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
CTLESC and CTLNUL removed in certain contexts Grisha Levit <grishalevit@gmail.com> - 2018-09-20 20:23 -0400
| From | Grisha Levit <grishalevit@gmail.com> |
|---|---|
| Date | 2018-09-20 20:23 -0400 |
| Subject | CTLESC 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.
Back to top | Article view | gnu.bash.bug
csiph-web