From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27211 invoked from network); 23 Feb 1999 08:40:54 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Feb 1999 08:40:54 -0000 Received: (qmail 14537 invoked by alias); 23 Feb 1999 08:39:46 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2176 Received: (qmail 14528 invoked from network); 23 Feb 1999 08:39:45 -0000 Message-ID: <19990223033938.20667@bleep.ishiboo.com> Date: Tue, 23 Feb 1999 03:39:38 -0500 From: Danny Dulai To: Bart Schaefer Cc: zsh-users@sunsite.auc.dk Subject: Re: Setting paths with ~'s in values. References: <199902122018.PAA29284@po_box.cig.mot.com> <990212140558.ZM11520@candle.brasslantern.com> <19990222172007.61479@bleep.ishiboo.com> <14034.13710.335334.486111@c-bart.amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <14034.13710.335334.486111@c-bart.amazon.com>; from Bart Schaefer on Mon, Feb 22, 1999 at 08:58:54PM -0800 Quoting Bart Schaefer (schaefer@tiny.zanshin.com): > Danny Dulai writes: > > Quoting Bart Schaefer (schaefer@brasslantern.com): > > > > > > for t_path in $(<${HOME}/.zpaths) > > > do > > > if > > > [[ -d $t_path ]] > > > then > > > eval path=\( $path $t_path \) > > > fi > > > done > > > > This didnt seem to add the paths with ~ in them because the ~ didnt get > > expanded in the test for existence. > > Right, silly me. There was even some discussion of file expansion (or > more accurately, lack thereof) in [[ ... ]] expressions not long after > this. what is the difference between [[ ... ]] and [ ... ] ? Is [[ the builtin version of the test command? Some systems I've seen have has the [ command as a symlink to test. but zsh seems to have [ as a builtin. So what is the diff between [[ ... ]] and [ ... ] ? -- ___________________________________________________________________________ Danny Dulai Feet. Pumice. Lotion. http://www.ishiboo.com/~nirva/ nirva@ishiboo.com