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

Bad substitution bug: hold the release...



I suggest this needs fixing now rather than later (!)...

% print $(<nosuchfile)
zsh: 16949 segmentation fault (core dumped)  zsh

The only question is the appropriate error message: I copied the one
you get from a simple `<nosuchfile'.

*** Src/exec.c.getout	Thu Aug 15 10:33:18 1996
--- Src/exec.c	Thu Aug 15 11:27:04 1996
***************
*** 2033,2039 ****
  	if (errflag)
  	    return NULL;
  	untokenize(s);
! 	stream = open(unmeta(s), O_RDONLY);
  	return readoutput(stream, qt);
      }
  
--- 2033,2042 ----
  	if (errflag)
  	    return NULL;
  	untokenize(s);
! 	if ((stream = open(unmeta(s), O_RDONLY)) == -1) {
! 	    zerr("%e: %s", s, errno);
! 	    return NULL;
! 	}
  	return readoutput(stream, qt);
      }
  
-- 
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