mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-07 18:52:35 +02:00
change to test builtin for parenthesized expressions when there are more than four arguments to test; tentative change to @A transformation to output declare commands for local variables
This commit is contained in:
@@ -323,6 +323,15 @@ t -t /dev/tty4444444...
|
||||
2
|
||||
./test.tests: line 26: test: : integer expected
|
||||
2
|
||||
1
|
||||
0
|
||||
0
|
||||
./test.tests: line 26: test: `)' expected
|
||||
2
|
||||
./test.tests: line 26: test: (: unary operator expected
|
||||
2
|
||||
./test.tests: line 26: test: `)' expected
|
||||
2
|
||||
t -p /dev/fd/6
|
||||
1
|
||||
t -p /dev/fd/6
|
||||
|
||||
@@ -494,4 +494,15 @@ t -t /dev/tty4444444...
|
||||
# fixed in bash-4.0-beta
|
||||
t -t ' '
|
||||
|
||||
# ambiguous parenthesized test expressions with more than 4 arguments
|
||||
|
||||
t true -a \( ! -a \)
|
||||
t true -a \( -n foo \)
|
||||
t true -a \( foo \)
|
||||
|
||||
t 1 = 1 -a \( \)
|
||||
t \( \)
|
||||
|
||||
t 1 = 1 -a \( \) -a -n ""
|
||||
|
||||
${THIS_SH} ./test1.sub
|
||||
|
||||
Reference in New Issue
Block a user