From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25502 invoked from network); 9 Mar 2000 17:36:48 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Mar 2000 17:36:48 -0000 Received: (qmail 16410 invoked by alias); 9 Mar 2000 17:36:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10033 Received: (qmail 16398 invoked from network); 9 Mar 2000 17:36:40 -0000 To: "Andrej Borsenkow" Cc: "ZSH workers mailing list" Subject: Re: GNU diff completion problem References: <000701bf89e6$d1b88f00$21c9ca95@mow.siemens.ru> X-Attribution: adl From: Alexandre Duret-Lutz Date: 09 Mar 2000 18:30:55 +0100 In-Reply-To: "Andrej Borsenkow"'s message of "Thu, 9 Mar 2000 19:45:04 +0300" Message-ID: User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> "Andrej" == Andrej Borsenkow writes: Andrej> I'm sorry, but I missed this discussion. Andrej> Why _diff_options tests diff and not real command ($word[1])? Because `_diff_options' can be called from places (`_prcs') where `$word[1]' is not the real command, not only called from `_diff' Andrej> I have system default diff and GNU diff as gdiff. Current state Andrej> does not allow me to complete GNU diff at all, and I do not want Andrej> change names for many reasons. I believe, this is often the case. Perhaps a solution would be to pass the real command as the first argument to `diff_options' and store the `_is_gnu_diff' flag in an associative array as Sven suggested. [...] -- Alexandre Duret-Lutz