Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
pruning path array.
- X-seq: zsh-users 6776
- From: Anthony R Iano-Fletcher <Anthony.Iano-Fletcher@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: pruning path array.
- Date: Fri, 14 Nov 2003 12:18:40 -0500
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
How do I delete elements of an array (say path) that do not exist as
directories? Something akin to
path[(r).]=()
deleting the element '.' from one's path.
Anthony.
--
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