zsh-workers
 help / color / mirror / code / Atom feed
* Quelling default completions for homonymous commands
@ 2003-03-08 21:30 Bart Schaefer
  2003-03-10 15:07 ` Oliver Kiddle
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2003-03-08 21:30 UTC (permalink / raw)
  To: zsh-workers

I have a shell function named "show" that I've used for years.  It has
nothing to do with the MH command "show", but I've just noticed that zsh
complains to stderr "_mh:1: command not found: mhpath" when I complete for
my "show" function.

This is foremost a bug in _mh, because completion functions should not
invoke external commands without a strategic 2>/dev/null.  However, I'd
rather skip the MH completion attempt entirely.

Obviously I can "compdef -d show" somewhere in my startup files, but I
wonder whether there ought to be some more generalized way to avoid even
loading the completion functions for commands that are not installed.

Thoughts?


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

end of thread, other threads:[~2003-03-10 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-08 21:30 Quelling default completions for homonymous commands Bart Schaefer
2003-03-10 15:07 ` Oliver Kiddle

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).