diff options
| author | Chet Ramey <chet.ramey@case.edu> | 2012-03-05 21:16:53 -0500 |
|---|---|---|
| committer | Chet Ramey <chet.ramey@case.edu> | 2012-03-05 21:16:53 -0500 |
| commit | 1f6ec1a86f688bb09a79232b6fb4a30a19ae71b2 (patch) | |
| tree | 1191abd1ec5fe4ba411ed9c935cfb74943f5d1e9 /builtins/evalstring.c | |
| parent | 7f947b6872bdd30fa5f02ce26c17bd32f1df1e18 (diff) | |
| download | bash-1f6ec1a86f688bb09a79232b6fb4a30a19ae71b2.tar.gz | |
commit bash-20120216 snapshot
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"); |
