diff options
Diffstat (limited to 'builtins/evalstring.c')
| -rw-r--r-- | builtins/evalstring.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtins/evalstring.c b/builtins/evalstring.c index 333a56ee..fe812dee 100644 --- a/builtins/evalstring.c +++ b/builtins/evalstring.c @@ -1,6 +1,6 @@ /* evalstring.c - evaluate a string as one or more shell commands. */ -/* Copyright (C) 1996-2010 Free Software Foundation, Inc. +/* Copyright (C) 1996-2012 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. @@ -308,7 +308,8 @@ parse_and_execute (string, from_file, flags) command->value.Simple->words == 0 && command->value.Simple->redirects && command->value.Simple->redirects->next == 0 && - command->value.Simple->redirects->instruction == r_input_direction) + command->value.Simple->redirects->instruction == r_input_direction && + command->value.Simple->redirects->redirector.dest == 1) { int r; r = cat_file (command->value.Simple->redirects); @@ -317,7 +318,6 @@ parse_and_execute (string, from_file, flags) else last_result = execute_command_internal (command, 0, NO_PIPE, NO_PIPE, bitmap); - dispose_command (command); dispose_fd_bitmap (bitmap); discard_unwind_frame ("pe_dispose"); |
