Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Two simple questions
- X-seq: zsh-users 7990
- From: Tero Niemela <tero_niemela@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Two simple questions
- Date: Tue, 14 Sep 2004 11:55:45 -0700 (PDT)
- In-reply-to: <20040914171917.GA592@DervishD>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi!
> so you just need to do this:
>
> setopt EXTENDED_GLOB
> path=(${${path//\/##/\/}%/})
> unsetopt EXTENDED_GLOB
Thanks! This works all ok here, too. For reference, my
ultimate path cleaning now contains:
# Clean up paths
path=($^path(N))
manpath=($^manpath(N))
setopt EXTENDED_GLOB
path=(${${path//\/##/\/}%/})
manpath=(${${manpath//\/##/\/}%/})
unsetopt EXTENDED_GLOB
typeset -U path manpath
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author