diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-12-03 12:54:32 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-03 12:54:32 -0500 |
commit | f9732a0465849a00e96ecd85b2a2b220cc48fa5a (patch) | |
tree | 69aab0f45d155c759b55efb9ce0be8285b498770 /print_cmd.c | |
parent | 704a1a2a9b773267d2bcaff0b17c5012793b2e0f (diff) | |
download | bash-f9732a0465849a00e96ecd85b2a2b220cc48fa5a.tar.gz |
commit bash-20040205 snapshot
Diffstat (limited to 'print_cmd.c')
-rw-r--r-- | print_cmd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/print_cmd.c b/print_cmd.c index 631c5ccf..8381bc33 100644 --- a/print_cmd.c +++ b/print_cmd.c @@ -775,6 +775,13 @@ print_redirection_list (redirects) else hdtail = heredocs = newredir; } + else if (redirects->instruction == r_duplicating_output_word && redirects->redirector == 1) + { + /* Temporarily translate it as the execution code does. */ + redirects->instruction = r_err_and_out; + print_redirection (redirects); + redirects->instruction = r_duplicating_output_word; + } else print_redirection (redirects); |