* PATCH: zrecompile
@ 2000-03-30 14:44 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-03-30 14:44 UTC (permalink / raw)
To: zsh-workers
I overlooked one place where we need to change -r/-m into -R/-M.
And we shouldn't change options affecting parsing[1] in there, so I've
just completely removed the `emulate -L zsh'.
[1] Should we say that in the manual somewhere? That some options do
that kind of stuff and hence their setting at the time of the call
to zcompile is important.
Bye
Sven
diff -ru ../z.old/Functions/Misc/zrecompile Functions/Misc/zrecompile
--- ../z.old/Functions/Misc/zrecompile Thu Mar 30 13:33:50 2000
+++ Functions/Misc/zrecompile Thu Mar 30 15:01:57 2000
@@ -33,8 +33,7 @@
# that needed re-compilation could be compiled and non-zero if compilation
# for at least one of the files failed.
-emulate -L zsh
-setopt extendedglob
+setopt localoptions extendedglob
local opt check quiet zwc files re file pre ret map tmp mesg pats
@@ -68,7 +67,7 @@
fi
files=( ${files:#*(.zwc|~)} )
- if [[ $files[1] = -[rm] ]]; then
+ if [[ $files[1] = -[RM] ]]; then
map=( $files[1] )
shift 1 files
else
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-03-30 14:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-30 14:44 PATCH: zrecompile Sven Wischnowsky
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).