mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 18:22:25 +02:00
commit bash-20080522 snapshot
This commit is contained in:
+11
-2
@@ -1,6 +1,6 @@
|
||||
/* print_command -- A way to make readable commands from a command tree. */
|
||||
|
||||
/* Copyright (C) 1989-2005 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1989-2008 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
@@ -609,7 +609,12 @@ print_case_clauses (clauses)
|
||||
indentation += indentation_amount;
|
||||
make_command_string_internal (clauses->action);
|
||||
indentation -= indentation_amount;
|
||||
newline (";;");
|
||||
if (clauses->flags & CASEPAT_FALLTHROUGH)
|
||||
newline (";&");
|
||||
else if (clauses->flags & CASEPAT_TESTNEXT)
|
||||
newline (";;&");
|
||||
else
|
||||
newline (";;");
|
||||
clauses = clauses->next;
|
||||
}
|
||||
indentation -= indentation_amount;
|
||||
@@ -972,6 +977,10 @@ print_redirection (redirect)
|
||||
cprintf ("&>%s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_append_err_and_out:
|
||||
cprintf ("&>>%s", redirectee->word);
|
||||
break;
|
||||
|
||||
case r_input_output:
|
||||
if (redirector != 1)
|
||||
cprintf ("%d", redirector);
|
||||
|
||||
Reference in New Issue
Block a user