mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-23 13:57:58 +02:00
commit bash-20200508 snapshot
This commit is contained in:
@@ -2126,6 +2126,7 @@ list_all_jobs (format)
|
||||
pid_t
|
||||
make_child (command, flags)
|
||||
char *command;
|
||||
int flags;
|
||||
{
|
||||
int async_p, forksleep;
|
||||
sigset_t set, oset, termset, chldset, oset_copy;
|
||||
|
||||
@@ -2325,7 +2325,7 @@ shell_getc (remove_quoted_newline)
|
||||
i = truncating = 0;
|
||||
shell_input_line_terminator = 0;
|
||||
|
||||
/* If the shell is interatctive, but not currently printing a prompt
|
||||
/* If the shell is interactive, but not currently printing a prompt
|
||||
(interactive_shell && interactive == 0), we don't want to print
|
||||
notifies or cleanup the jobs -- we want to defer it until we do
|
||||
print the next prompt. */
|
||||
@@ -2620,6 +2620,7 @@ pop_alias:
|
||||
if (SHOULD_PROMPT ())
|
||||
prompt_again ();
|
||||
line_number++;
|
||||
|
||||
/* What do we do here if we're expanding an alias whose definition
|
||||
includes an escaped newline? If that's the last character in the
|
||||
alias expansion, we just pop the pushed string list (recall that
|
||||
|
||||
@@ -64,11 +64,11 @@ fx ()
|
||||
0
|
||||
1
|
||||
2
|
||||
bash: -c: line 0: syntax error: arithmetic expression required
|
||||
bash: -c: line 0: syntax error: `(( i=0; "i < 3" ))'
|
||||
bash: -c: line 1: syntax error: arithmetic expression required
|
||||
bash: -c: line 1: syntax error: `(( i=0; "i < 3" ))'
|
||||
2
|
||||
bash: -c: line 0: syntax error: `;' unexpected
|
||||
bash: -c: line 0: syntax error: `(( i=0; i < 3; i++; 7 ))'
|
||||
bash: -c: line 1: syntax error: `;' unexpected
|
||||
bash: -c: line 1: syntax error: `(( i=0; i < 3; i++; 7 ))'
|
||||
2
|
||||
20
|
||||
20
|
||||
|
||||
+6
-6
@@ -129,10 +129,10 @@ after 3: 1
|
||||
array after 1: 0
|
||||
|
||||
array after 2: 0
|
||||
./errors6.sub: uvar: parameter not set
|
||||
./errors6.sub: uvar: parameter null or not set
|
||||
./errors6.sub: line 1: uvar: parameter not set
|
||||
./errors6.sub: line 1: uvar: parameter null or not set
|
||||
|
||||
./errors6.sub: uvar: parameter null or not set
|
||||
./errors6.sub: line 1: uvar: parameter null or not set
|
||||
./errors6.sub: line 38: ${-3:-${-3}}: bad substitution
|
||||
./errors6.sub: line 39: ${-3}: bad substitution
|
||||
./errors6.sub: line 40: -3: invalid variable name
|
||||
@@ -149,10 +149,10 @@ unset
|
||||
array after 1: 0
|
||||
|
||||
array after 2: 0
|
||||
./errors6.sub: uvar: parameter not set
|
||||
./errors6.sub: uvar: parameter null or not set
|
||||
./errors6.sub: line 1: uvar: parameter not set
|
||||
./errors6.sub: line 1: uvar: parameter null or not set
|
||||
|
||||
./errors6.sub: uvar: parameter null or not set
|
||||
./errors6.sub: line 1: uvar: parameter null or not set
|
||||
./errors6.sub: line 38: ${-3:-${-3}}: bad substitution
|
||||
./errors6.sub: line 39: ${-3}: bad substitution
|
||||
./errors6.sub: line 40: -3: invalid variable name
|
||||
|
||||
+1
-1
@@ -710,4 +710,4 @@ aaa bb
|
||||
argv[1] = </>
|
||||
argv[1] = </>
|
||||
|
||||
./new-exp.tests: ABXD: parameter unset
|
||||
./new-exp.tests: line 1: ABXD: parameter unset
|
||||
|
||||
+7
-7
@@ -1,16 +1,16 @@
|
||||
AAA
|
||||
bash5: `invalid-name': not a valid identifier
|
||||
bash5: line 1: `invalid-name': not a valid identifier
|
||||
in
|
||||
in
|
||||
in
|
||||
in
|
||||
bash5: -c: line 0: syntax error near unexpected token `)'
|
||||
bash5: -c: line 0: `case x in esac) echo done; esac'
|
||||
bash5: -c: line 1: syntax error near unexpected token `)'
|
||||
bash5: -c: line 1: `case x in esac) echo done; esac'
|
||||
in
|
||||
bash5: -c: line 0: syntax error near unexpected token `do'
|
||||
bash5: -c: line 0: `case in do do) echo in; esac'
|
||||
bash5: -c: line 0: syntax error near unexpected token `('
|
||||
bash5: -c: line 0: `for()'
|
||||
bash5: -c: line 1: syntax error near unexpected token `do'
|
||||
bash5: -c: line 1: `case in do do) echo in; esac'
|
||||
bash5: -c: line 1: syntax error near unexpected token `('
|
||||
bash5: -c: line 1: `for()'
|
||||
in
|
||||
done
|
||||
ok 1
|
||||
|
||||
Reference in New Issue
Block a user