From: Arusekk <arek_koz@o2.pl>
To: zsh-workers@zsh.org
Subject: [completion] GDB completion bug
Date: Sun, 22 Nov 2020 23:39:53 +0100 [thread overview]
Message-ID: <3f0884a6-18f8-4d0d-2bae-e9ac3f3636ba@o2.pl> (raw)
Hello!
This is my first time with zsh development, so I hope I will not miss
anything. I am using zsh 5.8 shipped with Gentoo, no patches.
I use oh-my-zsh with plugins=(tig gitfast colored-man-pages colorize
command-not-found cp dirhistory autojump sudo fast-syntax-highlighting
zsh-autosuggestions)
and ZSH_THEME="powerlevel10k/powerlevel10k" and no further
customisations, but I hope this is irrelevant, just activates the
completion functions.
The bug is not critical in any way, but just happens in the following
setting:
zsh-5.8% gdb (cursor here) -h
Then it is enough to hit Tab. The -h can be any other option, or even a
file name, not really important, but there has to be space before
cursor, and after it (I guess so).
This is the error message:
_pids:shift:13: shift count must be <= $#
_pids:compadd:42: bad option: -m
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.
Glad to have found a bug in such reliable software!
Arusekk
next reply other threads:[~2020-11-22 22:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 22:39 Arusekk [this message]
2020-11-23 4:12 ` Daniel Shahaf
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=3f0884a6-18f8-4d0d-2bae-e9ac3f3636ba@o2.pl \
--to=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).