Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion caching layer
- X-seq: zsh-workers 12474
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Adam Spiers <adam@xxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: completion caching layer
- Date: Wed, 2 Aug 2000 03:53:53 +0000
- In-reply-to: <20000802003707.A12849@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200007270800.KAA15656@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20000801173152.A9212@xxxxxxxxxxxxxxxxxxxxxxx> <1000801170332.ZM30820@xxxxxxxxxxxxxxxxxxxxxxx> <20000802003707.A12849@xxxxxxxxxxxxxxxxxxxxxxx>
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