Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Fix double apropos output when both alias name and command name match the pattern
@ 2026-05-31 16:37 Philippe Waroquiers
  2026-05-31 16:37 ` [PATCH] " Philippe Waroquiers
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Waroquiers @ 2026-05-31 16:37 UTC (permalink / raw)
  To: gdb-patches

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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-23 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31 16:37 Fix double apropos output when both alias name and command name match the pattern Philippe Waroquiers
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox