Revision 10921
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
633 | 633 |
if test "$i"; then |
634 | 634 |
local redir_prefix="$(match_prefix '*[<>]' "$i")" |
635 | 635 |
local dest="$( rm_prefix '*[<>]' "$i")" |
636 |
if ! starts_with '&' "$dest"; then # escape dest |
|
636 |
if test "$dest" && ! starts_with '&' "$dest"; then # escape dest
|
|
637 | 637 |
i="$redir_prefix$(printf %q "$dest")" |
638 | 638 |
fi |
639 | 639 |
if test "$redir_prefix"; then redirs+=("$redir_prefix&-"); fi |
Also available in: Unified diff
bugfix: lib/sh/util.sh: set_fds(): don't add surrounding quotes to empty redirect dest