mirror of
https://git.busybox.net/busybox
synced 2026-02-15 22:16:09 +00:00
The trap and jobs builtins can be used to report information about traps and jobs. This works when they're called from the current shell but in a child shell the required information is usually cleared. Special hacks allow: - trap to work with command substitution; - jobs to work with command substitution or in a pipeline. Neither works with process substitution. - Relax the test for the trap hack so it also supports pipelines. - Pass the command to be evaluated to forkshell() in evalbackcmd() so trap and jobs both work with process substitution. function old new delta forkchild 629 640 +11 argstr 1502 1496 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 11/-6) Total: 5 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
|---|---|---|
| .. | ||
| catch.right | ||
| catch.tests | ||
| continue_and_trap1.right | ||
| continue_and_trap1.tests | ||
| reap1.right | ||
| reap1.tests | ||
| return_in_trap1.right | ||
| return_in_trap1.tests | ||
| save-ret.right | ||
| save-ret.tests | ||
| savetrap.right | ||
| savetrap.tests | ||
| sigint1.right | ||
| sigint1.tests | ||
| signal1.right | ||
| signal1.tests | ||
| signal2.right | ||
| signal2.tests | ||
| signal3.right | ||
| signal3.tests | ||
| signal4.right | ||
| signal4.tests | ||
| signal5.right | ||
| signal5.tests | ||
| signal6.right | ||
| signal6.tests | ||
| signal7.right | ||
| signal7.tests | ||
| signal8.right | ||
| signal8.tests | ||
| signal9.right | ||
| signal9.tests | ||
| signal_read2.right | ||
| signal_read2.tests | ||
| sigquit_exec.right | ||
| sigquit_exec.tests | ||
| subshell.right | ||
| subshell.tests | ||
| usage.right | ||
| usage.tests | ||