aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 97c7f4ef5..a43b65680 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -9445,11 +9445,10 @@ expredir(union node *n)
9445 case NFROMFD: 9445 case NFROMFD:
9446 case NTOFD: /* >& */ 9446 case NTOFD: /* >& */
9447 if (redir->ndup.vname) { 9447 if (redir->ndup.vname) {
9448 expandarg(redir->ndup.vname, &fn, EXP_FULL | EXP_TILDE); 9448 expandarg(redir->ndup.vname, &fn, EXP_TILDE | EXP_REDIR);
9449 if (fn.list == NULL) 9449 if (fn.list == NULL)
9450 ash_msg_and_raise_error("redir error"); 9450 ash_msg_and_raise_error("redir error");
9451#if BASH_REDIR_OUTPUT 9451#if BASH_REDIR_OUTPUT
9452//FIXME: we used expandarg with different args!
9453 if (!isdigit_str9(fn.list->text)) { 9452 if (!isdigit_str9(fn.list->text)) {
9454 /* >&file, not >&fd */ 9453 /* >&file, not >&fd */
9455 if (redir->nfile.fd != 1) /* 123>&file - BAD */ 9454 if (redir->nfile.fd != 1) /* 123>&file - BAD */