Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Setting paths with ~'s in values.
- X-seq: zsh-users 2176
- From: Danny Dulai <nirva@xxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxx>
- Subject: Re: Setting paths with ~'s in values.
- Date: Tue, 23 Feb 1999 03:39:38 -0500
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <14034.13710.335334.486111@xxxxxxxxxxxxxxxxx>; from Bart Schaefer on Mon, Feb 22, 1999 at 08:58:54PM -0800
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199902122018.PAA29284@xxxxxxxxxxxxxxxxxx> <990212140558.ZM11520@xxxxxxxxxxxxxxxxxxxxxxx> <19990222172007.61479@xxxxxxxxxxxxxxxxx> <14034.13710.335334.486111@xxxxxxxxxxxxxxxxx>
Quoting Bart Schaefer (schaefer@xxxxxxxxxxxxxxxx):
> Danny Dulai writes:
> > Quoting Bart Schaefer (schaefer@xxxxxxxxxxxxxxxx):
> > >
> > > 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@xxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author