about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-11-05 00:09:56 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-11-05 00:09:56 +0000
commit542b84358933e363773afe2105c9fa5ee494e18b (patch)
treee0d47552102f9345daf0ebe6a03ae6487a78c0c3 /Src/builtin.c
parent372555ff201bad639c4b50411293cfd872e31728 (diff)
downloadzsh-542b84358933e363773afe2105c9fa5ee494e18b.tar.gz
zsh-542b84358933e363773afe2105c9fa5ee494e18b.tar.xz
zsh-542b84358933e363773afe2105c9fa5ee494e18b.zip
Reverse the merging of 21296 onto 4.2 branch; the builtin.c piece had a merge conflict, and my resolution of it caused test failure in C03.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 2adecbe21..145cb8cad 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -5012,7 +5012,7 @@ bin_trap(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
 		    s = getpermtext(sigfuncs[sig], NULL);
 		    printf("trap -- ");
 		    quotedzputs(s, stdout);
-		    printf(" %s\n", name);
+		    printf(" %s\n", sigs[sig]);
 		    zsfree(s);
 		}
 	    }
@@ -5052,23 +5052,12 @@ bin_trap(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
     /* set traps */
     for (; *argv; argv++) {
 	Eprog t;
-	int flags;
 
 	sig = getsignum(*argv);
 	if (sig == -1) {
 	    zwarnnam(name, "undefined signal: %s", *argv, 0);
 	    break;
 	}
-	if (!strcmp(sigs[sig], *argv))
-	    flags = 0;
-	else {
-	    /*
-	     * Record that the signal is used under an assumed name.
-	     * If we ever have more than one alias per signal this
-	     * will need improving.
-	     */
-	    flags = ZSIG_ALIAS;
-	}
 	t = dupeprog(prog, 0);
 	if (settrap(sig, t))
 	    freeeprog(t);