Revision 10768
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
640 | 640 |
set_fds "$1" |
641 | 641 |
} |
642 | 642 |
|
643 |
function filter_fd() # usage: (fd=# filter_fd filter_cmd...; with filter...) |
|
643 |
function filter_fd() # usage: (fd=# [redirs=] filter_fd filter_cmd...; \ |
|
644 |
# with filter...) # be sure ${redirs[@]} is not set to an outer value |
|
644 | 645 |
# useful e.g. to filter logging output or highlight errors |
645 | 646 |
{ |
646 | 647 |
echo_func; kw_params fd; : "${fd?}" |
Also available in: Unified diff
fix: lib/sh/util.sh: filter_fd(): documented that ${redirs[@]} must not be set to an outer value