mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +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> |
||
|---|---|---|
| .. | ||
| ash-alias | ||
| ash-arith | ||
| ash-comm | ||
| ash-getopts | ||
| ash-glob | ||
| ash-heredoc | ||
| ash-invert | ||
| ash-misc | ||
| ash-parsing | ||
| ash-psubst | ||
| ash-quoting | ||
| ash-read | ||
| ash-redir | ||
| ash-signals | ||
| ash-standalone | ||
| ash-vars | ||
| ash-z_slow | ||
| .gitignore | ||
| printenv.c | ||
| recho.c | ||
| run-all | ||
| zecho.c | ||