Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [completion] GDB completion bug
- X-seq: zsh-workers 47600
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Arusekk <arek_koz@xxxxx>
- Subject: Re: [completion] GDB completion bug
- Date: Mon, 23 Nov 2020 04:12:40 +0000
- Archived-at: <https://zsh.org/workers/47600>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/20201123041240.GB31253%40tarpaulin.shahaf.local2>
- Authentication-results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=cu3FQCS3YuaUyRqdqJwec+O8w4gGsXiHENNpeOTa cis=; b=VR4F0IQjuNUb426WWFYO39TK6fEPNapTM36J6JoI8z5jpHV367ZGhtRp FsON/A0o9VU7UnuhRvCZ8f8f/Qwnk9WrLBAInC+zhu/91anQl6LlpJW2oCr5GUAz X8kraaPJ7CZa5BujbRksCMXCRKxIWnL0hNWOn80QEovsX+fZ7lKhKV5cvAXQ+IKZ 9wU00u95dHO0cUEsfIicw7bbfQi5WjjCMWyWf5K7Mto6GAf9KyiAu5phgGeHfU6S 5S3Uptsx3lhfniLbOgVh41EibGFyEresR41ybn8N7AaZuprNG17isn8wqazm3Nlm TJUH6xkLLEtx6PX6No7DgDxUEUopcg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=cu3FQCS3YuaUyRqdqJwec+O8w4gGsXiHENNpeOTac is=; b=dGZuMmZN4jsVnFFdh9XybcJjk7MSa5vsZlzGKFXrqBC1VBTLKCRFgnrxv 1rl9+3Ax1k8OOp282lmQS49MUHXm2wkurvW+GJn6tB/oNiAcoSd9WGDRO0nDGX+6 qbm1dL9W/R2IVDqJDn1ENCjpOxeojhljL7fBFHhf3hvbSJu6qgVLItOreQNvMQ7Q JRoO6r5XjKzTZdfxHjXuAJMPynpmadtple8FmJ4qeZWPUbscULdH9DWIfed0YJ03 Mv16EYUqyYuOhStQ43IdK7J43u2XZGEb3NNwI4JRWHJuU9YhwBPza3yM5inj40sd 68KY+WRWxC0Jm7k0eYcHObMtTVI/w==
- In-reply-to: <3f0884a6-18f8-4d0d-2bae-e9ac3f3636ba@o2.pl>
- 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>
- References: <3f0884a6-18f8-4d0d-2bae-e9ac3f3636ba@o2.pl>
- Sender: zsh-workers-request@xxxxxxx
Arusekk wrote on Sun, Nov 22, 2020 at 23:39:53 +0100:
> _pids:shift:13: shift count must be <= $#
> _pids:compadd:42: bad option: -m
I can reproduce this.
> I traced it down to most probably
> /usr/share/zsh/5.8/functions/Completion/Unix/_gdb calling _pids, but I do
> not know enough of zsh completion to investigate more.
fned it and add «typeset -p w >/dev/tty» right before the call and
you'll see that w=('' -h) at that point; then, the parameter expansion
in the call to _pids isn't quoted and expands to an empty string, hence
it's elided, causing the error.
Unsure of the fix.
Cheers,
Daniel
> Glad to have found a bug in such reliable software!
> Arusekk
>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author