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

Re: PATCH: completion caching layer



On Aug 2, 12:37am, Adam Spiers wrote:
} > 
} >     while (($# > 1)); do
} >       shift
} >       ${(P)=1:+typeset $1}
} >     done > "$_cache_dir/$_cache_ident"
} > 
} > would be more accurate?
} 
} Is that better than what you suggested via private mail?

No, it's not.  This:

} >     typeset +g "$@[2,-1]" > "$_cache_dir/$_cache_ident"

Is probably the most efficient answer, but it doesn't skip the readonly
variables, which the longer suggestion the private message did.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author