From: Philippe Waroquiers <philippe.waroquiers@skynet.be>
To: gdb-patches@sourceware.org
Subject: Fix double apropos output when both alias name and command name match the pattern
Date: Sun, 31 May 2026 18:37:25 +0200 [thread overview]
Message-ID: <20260531163756.781643-1-philippe.waroquiers@skynet.be> (raw)
apropos_cmd first tries to match the command name with the pattern.
If that succeeds, it prints the command and all its aliases not having
a specific doc string.
In this case, it should not try to match the command aliases names as
the command has already been printed.
Without this patch, the behaviour is:
(gdb) alias ter-exec = interpreter-exec
(gdb) apropos er-exe
interpreter-exec, ter-exec -- Execute a command in an interpreter.
interpreter-exec, ter-exec -- Execute a command in an interpreter.
(gdb)
next reply other threads:[~2026-05-31 16:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-31 16:37 Philippe Waroquiers [this message]
2026-05-31 16:37 ` [PATCH] " Philippe Waroquiers
2026-06-16 18:51 ` Philippe Waroquiers
2026-07-21 14:42 ` Philippe Waroquiers
2026-07-23 14:59 ` Guinevere Larsen
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=20260531163756.781643-1-philippe.waroquiers@skynet.be \
--to=philippe.waroquiers@skynet.be \
--cc=gdb-patches@sourceware.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox