From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Bad substitution bug: hold the release...
Date: Thu, 15 Aug 1996 11:30:59 +0200 [thread overview]
Message-ID: <199608150930.LAA17853@hydra.ifh.de> (raw)
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@ifh.de> 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.
reply other threads:[~1996-08-15 9:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199608150930.LAA17853@hydra.ifh.de \
--to=pws@ifh.de \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).