From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Arusekk <arek_koz@o2.pl>
Cc: zsh-workers@zsh.org
Subject: Re: [completion] GDB completion bug
Date: Mon, 23 Nov 2020 04:12:40 +0000 [thread overview]
Message-ID: <20201123041240.GB31253@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <3f0884a6-18f8-4d0d-2bae-e9ac3f3636ba@o2.pl>
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
>
>
next prev parent reply other threads:[~2020-11-23 4:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 22:39 Arusekk
2020-11-23 4:12 ` Daniel Shahaf [this message]
2021-04-08 22:39 ` Oliver Kiddle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201123041240.GB31253@tarpaulin.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=arek_koz@o2.pl \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).