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

PATCH: zrecompile



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@xxxxxxxxxxxxxxxxxxxxxxx



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