zsh-workers
 help / color / mirror / code / Atom feed
* Bug in completion with curly braces?
@ 2020-11-20  1:50 Felipe Contreras
  2020-11-20  2:52 ` Mikael Magnusson
  2020-11-21 15:28 ` Daniel Shahaf
  0 siblings, 2 replies; 19+ messages in thread
From: Felipe Contreras @ 2020-11-20  1:50 UTC (permalink / raw)
  To: Zsh hackers list

Hello,

While adding unquoted completions such as "stash@{0}" the completion
system gets confused while inside the curly braces.

For example, given:

  compadd -Q -- 'stash@{0}' 'stash@{1}'

The first completion correctly generates "stash@{", but the second one
generates curly braces, the third one does the same, and so on ad
infinitum.

I didn't specify file (-f) or any special completion, so why would zle
attempt curly brace expansion, especially if the words contain curly
braces, and the current character is a curly brace?

Here's a simple test:

----------------------------------------
#compdef foo

_foo () {
compadd -Q -- 'stash@{0}' 'stash@{1}'
}

_foo
----------------------------------------

Cheers.

-- 
Felipe Contreras


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

end of thread, other threads:[~2021-12-02 19:45 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20  1:50 Bug in completion with curly braces? Felipe Contreras
2020-11-20  2:52 ` Mikael Magnusson
2020-11-21 15:28 ` Daniel Shahaf
2020-11-21 21:08   ` Felipe Contreras
2020-11-21 22:32     ` Bart Schaefer
2020-11-22  0:37       ` Felipe Contreras
2020-11-22  2:28         ` Bart Schaefer
2020-11-22  2:58           ` Felipe Contreras
2020-11-22 20:35             ` Bart Schaefer
2020-11-22 21:20               ` Bart Schaefer
2020-11-23  3:03               ` Daniel Shahaf
2020-11-23  7:15                 ` Bart Schaefer
2020-11-23  6:46               ` Felipe Contreras
2020-11-23  7:17                 ` Bart Schaefer
2021-04-18 21:43                   ` Bart Schaefer
2020-11-23 17:31                 ` Bart Schaefer
2020-11-24 23:21                   ` Oliver Kiddle
2020-11-25  5:06                     ` Felipe Contreras
2021-12-02 19:45                       ` PATCH: bashcompinit quoting (was Re: Bug in completion with curly braces?) Oliver Kiddle

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).