From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25412 invoked from network); 10 Feb 2000 14:44:39 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Feb 2000 14:44:39 -0000 Received: (qmail 12660 invoked by alias); 10 Feb 2000 14:44:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9663 Received: (qmail 12652 invoked from network); 10 Feb 2000 14:44:31 -0000 Message-ID: <38A2CECF.D2CF0256@u.genie.co.uk> Date: Thu, 10 Feb 2000 14:44:31 +0000 From: Oliver Kiddle X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Zsh workers Subject: Re: PATCH: _diff References: <200002101410.PAA25260@beta.informatik.hu-berlin.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sven Wischnowsky wrote: > > Well, if we use something like _diff_is_gnu[$words[1]], using a > non-local variable should be fine, right? It'd be fine though I suppose that if we're going to be pedantic it wouldn't: $words[1] could include a path to the command which is relative to the current directory so it would refer to a different command after a cd. I don't think that would matter much though. Is there a quick and easy way to turn a directory name into a full non-relative path (like the DOS truename command). I've done things like a=$(cd $d;pwd) in scripts before. An expansion flag of some sort to do it would be useful (if one doesn't already exist). Oliver