From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25932 invoked from network); 9 Mar 2000 18:24:13 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Mar 2000 18:24:13 -0000 Received: (qmail 10953 invoked by alias); 9 Mar 2000 18:24:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10035 Received: (qmail 10940 invoked from network); 9 Mar 2000 18:24:07 -0000 From: "Bart Schaefer" Message-Id: <1000309182247.ZM10799@candle.brasslantern.com> Date: Thu, 9 Mar 2000 18:22:47 +0000 In-Reply-To: <000701bf89e6$d1b88f00$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "GNU diff completion problem" (Mar 9, 7:45pm) References: <000701bf89e6$d1b88f00$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , "ZSH workers mailing list" Subject: Re: GNU diff completion problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 9, 7:45pm, Andrej Borsenkow wrote: } Subject: GNU diff completion problem } } I'm sorry, but I missed this discussion. } } Why _diff_options tests diff and not real command ($word[1])? It's in case the real command is an alias or function that has unknown side-effects. } I have system default diff and GNU diff as gdiff. Current state does not } allow me to complete GNU diff at all You want compdef _diff gdiff zstyle ':completion:*:*:gdiff:*:version' command gdiff -v There's still a bug in that the next time you use plain `diff' the saved value of _diff_is_gnu will cause GNU diff options to be completed. The value of "_is_gnu" should probably be saved on a per-command basis. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com