zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: empty trap coredump
@ 2000-02-09 10:34 Alexandre Duret-Lutz
  0 siblings, 0 replies; only message in thread
From: Alexandre Duret-Lutz @ 2000-02-09 10:34 UTC (permalink / raw)
  To: zsh-workers


% 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-09 10:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-09 10:34 PATCH: empty trap coredump Alexandre Duret-Lutz

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).