Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug in completion with curly braces?
- X-seq: zsh-workers 47581
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Bug in completion with curly braces?
- Date: Thu, 19 Nov 2020 19:50:32 -0600
- Archived-at: <https://zsh.org/workers/47581>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CAMP44s1suGkR83v82%2BC8xUUG3J8fwyuwPamujvRUPLcNyQdeJw%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-wm1-f52.google.com) smtp.remote-ip=209.85.128.52; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=lbPU5P+KLFjF4armcmas53//zfaYcz0CnLPuVOTwPig=; b=X0M89TY/medT8J7D5ywz/PMZgPasD9YBvf2pt7W+m8kvhnYA8vzPtnBUgy7mk8GWxW uaWqIcqHPwcq3l+HT0x19Wmd3om4sFVjchqgcy7iNtKm/IZOauOBOnRDlvEClZQoXD0Z cV4ydUc0uLMq6WrKDxLhs8SPhIdK43qzDlZaVRs1v2lKoXaJYQ0Po1DqulZSdBT+eA9x kTA3CIcOAs00ukknVdFWfSw6ryrxImM1ifM2lD8cmbTT1RiUNLai7FIe7LRqfbK/52XS 47fWsz7yyUIoucNYAaUGRO6wRzbE7PY8ZxJOcDTKo1TIRs/FOEb5i531YXhd8JJAgxQf QigA==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- Sender: zsh-workers-request@xxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author