From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15859 invoked from network); 8 Mar 2003 21:30:50 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 8 Mar 2003 21:30:50 -0000 Received: (qmail 19286 invoked by alias); 8 Mar 2003 21:30:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18328 Received: (qmail 19275 invoked from network); 8 Mar 2003 21:30:41 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 8 Mar 2003 21:30:41 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.233.231] by sunsite.dk (MessageWall 1.0.8) with SMTP; 8 Mar 2003 21:30:40 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h28LUdF14502 for zsh-workers@sunsite.dk; Sat, 8 Mar 2003 13:30:39 -0800 From: "Bart Schaefer" Message-Id: <1030308213038.ZM14501@candle.brasslantern.com> Date: Sat, 8 Mar 2003 21:30:38 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Quelling default completions for homonymous commands MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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?