Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14615
| From | Grisha Levit <grishalevit@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | CTLESC and CTLNUL removed in certain contexts |
| Date | 2018-09-20 20:23 -0400 |
| Message-ID | <mailman.1052.1537489400.1284.bug-bash@gnu.org> (permalink) |
(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 gnu.bash.bug | Previous | Next | Find similar | Unroll thread
CTLESC and CTLNUL removed in certain contexts Grisha Levit <grishalevit@gmail.com> - 2018-09-20 20:23 -0400
csiph-web