← Commit list

de8c3f667

Denys Vlasenko
Denys Vlasenko
2010-09-12
FAILED Duration: 279s

Subject

hush: move the EXIT trap comment. no code changes

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush.c+3 -2
@@ -1358,9 +1358,10 @@ static void hush_exit(int exitcode)
argv[1] = G.traps[0];
argv[2] = NULL;
G.exiting = 1; /* prevent EXIT trap recursion */
- builtin_eval(argv);
/* Note: G.traps[0] is not cleared!
- * "trap" will still show it */
+ * "trap" will still show it, if executed
+ * in the handler */
+ builtin_eval(argv);
}
#if ENABLE_HUSH_JOB