mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-15 08:00:49 +02:00
Bash-5.3-alpha release
This commit is contained in:
+55
-14
@@ -1,3 +1,5 @@
|
||||
t
|
||||
1
|
||||
t -a noexist
|
||||
1
|
||||
t -a run-all
|
||||
@@ -136,6 +138,8 @@ t 700 -le 1000 -a -n "1" -a "20" = "20"
|
||||
0
|
||||
t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
|
||||
1
|
||||
t -n xx -a -z "" -a -t 0 -a -t
|
||||
0
|
||||
t /tmp/abc -nt /tmp/def
|
||||
1
|
||||
t /tmp/abc -ot /tmp/def
|
||||
@@ -148,6 +152,18 @@ t /tmp/abc -ef /tmp/def
|
||||
1
|
||||
t /tmp/abc -ef /tmp/ghi
|
||||
0
|
||||
t noexist -ot /tmp/abc
|
||||
0
|
||||
t /tmp/abc -ot noexist
|
||||
1
|
||||
t noexist -nt /tmp/abc
|
||||
1
|
||||
t noexist -ef /tmp/abc
|
||||
1
|
||||
t -N noexist
|
||||
1
|
||||
t -N /tmp/abc
|
||||
1
|
||||
t -r /dev/fd/0
|
||||
0
|
||||
t -w /dev/fd/1
|
||||
@@ -186,6 +202,8 @@ t -v set
|
||||
0
|
||||
t -v set
|
||||
0
|
||||
t -R UID
|
||||
1
|
||||
t xx -a yy
|
||||
0
|
||||
t xx -o ""
|
||||
@@ -216,6 +234,8 @@ t ( -E )
|
||||
0
|
||||
t ( "" )
|
||||
1
|
||||
t ( -n xx )
|
||||
0
|
||||
t ! -z "$z"
|
||||
0
|
||||
t ! -n "$z"
|
||||
@@ -235,28 +255,28 @@ t -G /tmp/test.group
|
||||
t -h /tmp/test.symlink
|
||||
0
|
||||
t 4+3 -eq 7
|
||||
./test.tests: line 26: test: 4+3: integer expression expected
|
||||
./test.tests: line 26: test: 4+3: integer expected
|
||||
2
|
||||
b 4-5 -eq 7
|
||||
./test.tests: line 20: [: 4+3: integer expression expected
|
||||
./test.tests: line 20: [: 4-5: integer expected
|
||||
2
|
||||
t 9 -eq 4+5
|
||||
./test.tests: line 26: test: 4+5: integer expression expected
|
||||
./test.tests: line 26: test: 4+5: integer expected
|
||||
2
|
||||
b 9 -eq 4+5
|
||||
./test.tests: line 20: [: 4+5: integer expression expected
|
||||
./test.tests: line 20: [: 4+5: integer expected
|
||||
2
|
||||
t A -eq 7
|
||||
./test.tests: line 26: test: A: integer expression expected
|
||||
./test.tests: line 26: test: A: integer expected
|
||||
2
|
||||
b A -eq 7
|
||||
./test.tests: line 20: [: A: integer expression expected
|
||||
./test.tests: line 20: [: A: integer expected
|
||||
2
|
||||
t 9 -eq B
|
||||
./test.tests: line 26: test: B: integer expression expected
|
||||
./test.tests: line 26: test: B: integer expected
|
||||
2
|
||||
b 9 -eq B
|
||||
./test.tests: line 20: [: B: integer expression expected
|
||||
./test.tests: line 20: [: B: integer expected
|
||||
2
|
||||
t ( 1 = 2
|
||||
./test.tests: line 26: test: `)' expected
|
||||
@@ -274,23 +294,44 @@ b ( 1 = 2
|
||||
2
|
||||
./test.tests: line 26: test: too many arguments
|
||||
2
|
||||
./test.tests: line 434: [: missing `]'
|
||||
./test.tests: line 26: test: syntax error: `-t' unexpected
|
||||
2
|
||||
./test.tests: line 26: test: argument expected
|
||||
2
|
||||
./test.tests: line 473: [: missing `]'
|
||||
2
|
||||
./test.tests: line 475: [: missing `]'
|
||||
2
|
||||
./test.tests: line 26: test: (: unary operator expected
|
||||
2
|
||||
t -t a
|
||||
1
|
||||
./test.tests: line 26: test: a: integer expected
|
||||
2
|
||||
t -t addsds
|
||||
1
|
||||
./test.tests: line 26: test: addsds: integer expected
|
||||
2
|
||||
t -t 42
|
||||
1
|
||||
t -t /dev/tty
|
||||
1
|
||||
./test.tests: line 26: test: /dev/tty: integer expected
|
||||
2
|
||||
t -t /dev/tty4
|
||||
1
|
||||
./test.tests: line 26: test: /dev/tty4: integer expected
|
||||
2
|
||||
t -t /dev/tty4444444...
|
||||
./test.tests: line 26: test: /dev/tty4444444...: integer expected
|
||||
2
|
||||
./test.tests: line 26: test: : integer expected
|
||||
2
|
||||
1
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user