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

Re: PATCH: Re: Files modified after a given date



I wrote:

> Most of this patch is to save/restore the global globbing state,
> though (in case the string or a function called from it does itself
> some globbing).

badcshglob shoudn't be saved/restored here -- it is in exec.c.

Bye
 Sven

diff -u oos/glob.c Src/glob.c
--- oos/glob.c	Mon Aug 30 10:58:42 1999
+++ Src/glob.c	Mon Aug 30 11:08:45 1999
@@ -121,7 +121,6 @@
 /* struct to easily save/restore current state */
 
 struct globdata {
-    int gd_badcshglob;
     int gd_pathpos;
     char *gd_pathbuf;
 
@@ -176,7 +175,6 @@
 #define save_globstate(N) \
   do { \
     memcpy(&(N), &curglobdata, sizeof(struct globdata)); \
-    (N).gd_badcshglob = badcshglob; \
     (N).gd_pathpos = pathpos; \
     (N).gd_pathbuf = pathbuf; \
     (N).gd_glob_pre = glob_pre; \
@@ -186,7 +184,6 @@
 #define restore_globstate(N) \
   do { \
     memcpy(&curglobdata, &(N), sizeof(struct globdata)); \
-    badcshglob = (N).gd_badcshglob; \
     pathpos = (N).gd_pathpos; \
     pathbuf = (N).gd_pathbuf; \
     glob_pre = (N).gd_glob_pre; \

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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