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

Re: execcmd() reordering



One extra simplification:  the special handling for wild cards in
cancd(), which handles autocd, can now be removed, since this now
happens after globbing.

I didn't realise the problem with backgrounding recursive globs
before, since I've never tried it.  I can't think of a way round other
than using a subshell.  Bummer.  (Interruption is definitely OK,
though.)

*** Src/exec.c.cancd	Fri May 31 09:36:00 1996
--- Src/exec.c	Fri May 31 10:51:52 1996
***************
*** 2470,2488 ****
      (s[1] == '/' || !s[1] || (s[1] == '.' && (s[2] == '/' || !s[1])));
      char *t;
  
-     if (haswilds(s)) {
- 	LinkList l = newlinklist();
- 	int ne = noerrs;
- 
- 	noerrs = 1;
- 	addlinknode(l, dupstring(s));
- 	globlist(l);
- 	if (!errflag && nonempty(l) && !nextnode(firstnode(l)))
- 	    s = peekfirst(l);
- 	errflag = 0;
- 	noerrs = ne;
-     }
- 
      if (*s != '/') {
  	char sbuf[PATH_MAX], **cp;
  
--- 2470,2475 ----

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.




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