Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pruning path array.
- X-seq: zsh-users 6778
- From: Anthony R Iano-Fletcher <Anthony.Iano-Fletcher@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: pruning path array.
- Date: Fri, 14 Nov 2003 12:28:14 -0500
- In-reply-to: <1031114172407.ZM2543@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20031114171840.GA21349@xxxxxxxxxxxxxxxx> <1031114172407.ZM2543@xxxxxxxxxxxxxxxxxxxxxxx>
Hello Bart
perfect - thanks. ;-)
Anthony.
On 14 Nov 2003 at 17:24:06, Bart Schaefer wrote:
> On Nov 14, 12:18pm, Anthony R Iano-Fletcher wrote:
> }
> } How do I delete elements of an array (say path) that do not exist as
> } directories?
>
> path=( ${^path}(N/) )
>
> Or, if you want symlinks to directories to be kept,
>
> path=( ${^path}(N-/) )
--
Anthony R Iano-Fletcher Anthony.Iano-Fletcher@xxxxxxx
http://cbel.cit.nih.gov/~arif
CBEL, CIT, NIH, Bethesda, MD, USA.
Phone: (+1) 301 402 1741.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author