zsh-workers
 help / color / mirror / code / Atom feed
From: Alexandre Duret-Lutz <duret_g@epita.fr>
To: zsh-workers@math.gatech.edu
Subject: PATCH: empty trap coredump
Date: 09 Feb 2000 11:34:30 +0100	[thread overview]
Message-ID: <mvbd7q6fyvd.fsf@phobos.lrde.epita.fr> (raw)


% trap '' 1
zsh: segmentation fault  /bin/zsh

The fix below come from Akim Demaille <akim@epita.fr> though I'm sending it.

Index: Src/builtin.c
--- Src/builtin.c Sun, 06 Feb 2000 11:06:18 +0100 Alexandre
+++ Src/builtin.c Wed, 09 Feb 2000 11:15:22 +0100 Alexandre
@@ -3883,7 +3883,7 @@
     /* Sort out the command to execute on trap */
     arg = *argv++;
     if (!*arg)
-	prog = NULL;
+	prog = &dummy_eprog;
     else if (!(prog = parse_string(arg, 0))) {
 	zwarnnam(name, "couldn't parse trap command", NULL, 0);
 	return 1;


-- 
Alexandre Duret-Lutz


                 reply	other threads:[~2000-02-09 10:36 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=mvbd7q6fyvd.fsf@phobos.lrde.epita.fr \
    --to=duret_g@epita.fr \
    --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).