Revision 10773
Added by Aaron Marcuse-Kubitza about 11 years ago
util.sh | ||
---|---|---|
627 | 627 |
for i in "$@"; do |
628 | 628 |
local redir_prefix="$(match_prefix '*[<>]' "$i")" |
629 | 629 |
if test "$redir_prefix"; then redirs+=("$redir_prefix&-"); fi |
630 |
redirs+=("$i") |
|
630 |
# remove empty redirects resulting from using `redirs= cmd...` to clear |
|
631 |
# the redirs and then using $redirs as an array |
|
632 |
if test "$i"; then redirs+=("$i"); fi |
|
631 | 633 |
done |
632 | 634 |
set -- "${redirs[@]}" |
633 | 635 |
|
Also available in: Unified diff
bugfix: lib/sh/util.sh: set_fds(): remove empty redirects resulting from using `redirs= cmd...` to clear the redirs and then using $redirs as an array