zsh-workers
 help / color / mirror / code / Atom feed
* Why does {..} expansion using 'bindkey' quoting, but {,} and BRACE_CCL don't quote at all?
@ 2021-08-04  7:04 Marlon Richert
  2021-08-04 15:52 ` Bart Schaefer
  0 siblings, 1 reply; 9+ messages in thread
From: Marlon Richert @ 2021-08-04  7:04 UTC (permalink / raw)
  To: Zsh hackers list

For example:

% print -r -- ${(q+):-{$'\C-['..$'\C-]'}}
'^[' '^\' '^]'
% print -r -- ${(q+):-{$'\C-[',$'\C-]'}}
$'\C-[' $'\C-]'
% setopt braceccl
% print -r -- ${(q+):-{$'\C-['-$'\C-]'}}
$'\C-[' $'\C-\' $'\C-]'
%

Is there a reason for this inconsistency? Why not always produce
quoted or unquoted output?

Also, why bindkey-style quoting? Wouldn't ${(q+)}-style quoting be
more convenient, since it's more straightforward to "unquote"?


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-08-10 19:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04  7:04 Why does {..} expansion using 'bindkey' quoting, but {,} and BRACE_CCL don't quote at all? Marlon Richert
2021-08-04 15:52 ` Bart Schaefer
2021-08-05  6:17   ` Marlon Richert
2021-08-05 23:36     ` Bart Schaefer
2021-08-06  0:55       ` Mikael Magnusson
2021-08-06  3:08         ` Bart Schaefer
2021-08-07 19:35         ` Marlon Richert
2021-08-08  0:09           ` Mikael Magnusson
2021-08-10 19:21             ` Marlon Richert

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).