From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: RE: Q about zrecompile
Date: Thu, 20 Apr 2000 14:43:53 +0200 (MET DST) [thread overview]
Message-ID: <200004201243.OAA28914@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Thu, 20 Apr 2000 15:58:35 +0400
Andrej Borsenkow wrote:
> > > bor@itsrm2% zfrecomp
> > > re-compiling
> > > /tools/share/zsh/3.1.7-pre-1/functions/Base/_arg_compile.zwc: failed
> >
> > As it says... it can't compile `.../_arg_compile.zwc'. Because, going
> > by the name, it probably isn't a shell code file.
> >
> > Use a pattern that includes only the *functions* (or scripts)
> > you want
> > to put in the zwc file(s).
> >
>
> I do NOT have _arg_compile.zwc at all. I do have only functions
> installed by default under /tools/share/zsh/$ZSH_VERSION/functions/
Everybody guessed that already, of course... it was all my fault.
I tried to make zrecompile smart, removing zwc files from the file
list it gets. So it was either too smart or too stupid.
I had tried it without a .zwc in the first argument. Completely
automatically, since the .zwc is automatically added.
Bye
Sven
Index: Functions/Misc/zrecompile
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Misc/zrecompile,v
retrieving revision 1.2
diff -u -r1.2 zrecompile
--- Functions/Misc/zrecompile 2000/04/01 20:49:47 1.2
+++ Functions/Misc/zrecompile 2000/04/20 12:41:24
@@ -66,13 +66,15 @@
argv=()
fi
- files=( ${files:#*(.zwc|~)} )
if [[ $files[1] = -[RM] ]]; then
map=( $files[1] )
shift 1 files
else
map=()
fi
+ (( $#files )) || continue
+
+ files=( $files[1] ${files[2,-1]:#*(.zwc|~)} )
(( $#files )) || continue
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
reply other threads:[~2000-04-20 12:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200004201243.OAA28914@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).