Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Two simple questions



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