From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 712 invoked from network); 10 Apr 2000 09:05:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Apr 2000 09:05:56 -0000 Received: (qmail 10239 invoked by alias); 10 Apr 2000 09:05:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10619 Received: (qmail 10227 invoked from network); 10 Apr 2000 09:05:44 -0000 Date: Mon, 10 Apr 2000 11:05:38 +0200 (MET DST) Message-Id: <200004100905.LAA32597@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Mon, 10 Apr 2000 08:54:15 +0000 Subject: Re: Compinstall, zcompile, and my .zshrc Bart Schaefer wrote: > On Apr 10, 10:37am, Sven Wischnowsky wrote: > } > } Bart Schaefer wrote: > } > } > Second, it'd be nice if I could do something like > } > > } > zcompile .zshrc.zwc .zshrc .zsh/* > } > } As for loading functions from a zwc files it checks if the (basename > } of the) name of the sourced file is in the zwc file. And the loads it. > } In other words, you can use symbolic links: > } > } zcompile .zshrc.zwc .zshrc .zsh/* > } for i in .zsh/*; do ln -s .zshrc.zwc ${i}.zwc; done > > But how clever is that? I mean, the file's still going to be read and/or > mapped multiple times; is it really any better than compiling them all as > separate .zwc files? No, currently not. Hm, we could make the functions that looks if a zwc file is already mapped check if the file is the same as one of the files already mapped usin stat, not only comparing filenames. When they are read using one digest file doesn't have any advantages, though. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de