Revision 9682
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
533 | 533 |
fd_set_default '22>&2' || true |
534 | 534 |
} |
535 | 535 |
set_global_fds |
536 |
err_fd=22 # global stderr |
|
537 | 536 |
|
538 | 537 |
# usage: explicit_errors_only=1 script... |
539 | 538 |
# show only explicitly-displayed errors (which have been redirected to fd 22) |
Also available in: Unified diff
lib/sh/util.sh: command(): don't set err_fd to global stderr, because this prevents errors from being captured and parsed by callers. it is also not necessary to use a separate port than stderr, because stderr already contains only errors (since logging messages go to their own port). global stderr would still be useful e.g. for displaying input prompts the user when reading from global stdin.