]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/test.right
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / test.right
CommitLineData
ccc6cda3
JA
1t -a noexist
21
3t -a run-all
40
5t -b run-all
61
7t -b /dev/jb1a
81
9t -c run-all
101
11t -c /dev/tty
120
13t -d run-all
141
15t -d /etc
160
d166f048
JA
17t -d ""
181
19b -d ""
201
ccc6cda3
JA
21t -e noexist
221
23t -e run-all
240
25t -f noexist
261
27t -f /dev/tty
281
29t -f run-all
300
31t -g run-all
321
33t -g /tmp/test.setgid
340
35t -k run-all
361
37t -n ""
381
39t -n "hello"
400
41t -p run-all
421
43t -r noexist
441
45t -r /tmp/test.noread
461
47t -r run-all
480
49t -s noexist
501
51t -s /dev/null
521
53t -s run-all
540
55t -t 20
561
57t -t 0
580
59t -u noexist
601
61t -u run-all
621
63t -u /tmp/test.setuid
640
65t -w noexist
661
67t -w /tmp/test.nowrite
681
69t -w /dev/null
700
71t -x noexist
721
73t -x /tmp/test.exec
740
75t -x /tmp/test.noexec
761
77t -z ""
780
79t -z "foo"
801
81t "foo"
820
83t ""
841
85t -O /tmp/test.owner
860
cce855bc
JA
87t -S /tmp/test.socket
881
89t -N /tmp/test.newer
900
ccc6cda3
JA
91t "hello" = "hello"
920
93t "hello" = "goodbye"
941
95t "hello" == "hello"
960
97t "hello" == "goodbye"
981
99t "hello" != "hello"
1001
101t "hello" != "goodbye"
1020
103t "hello" < "goodbye"
1041
105t "hello" > "goodbye"
1060
107t ! "hello" > "goodbye"
1081
109t 200 -eq 200
1100
111t 34 -eq 222
1121
d166f048
JA
113t -32 -eq 32
1141
ccc6cda3
JA
115t 200 -ne 200
1161
117t 34 -ne 222
1180
119t 200 -gt 200
1201
121t 340 -gt 222
1220
123t 200 -ge 200
1240
125t 34 -ge 222
1261
127t 200 -lt 200
1281
129t 34 -lt 222
1300
131t 200 -le 200
1320
133t 340 -le 222
1341
135t 700 -le 1000 -a -n "1" -a "20" = "20"
1360
137t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
1381
139t /tmp/abc -nt /tmp/def
1401
141t /tmp/abc -ot /tmp/def
1420
143t /tmp/def -nt /tmp/abc
1440
145t /tmp/def -ot /tmp/abc
1461
147t /tmp/abc -ef /tmp/def
1481
149t /tmp/abc -ef /tmp/ghi
1500
151t -r /dev/fd/0
1520
153t -w /dev/fd/1
1540
155t -w /dev/fd/2
1560
bb70624e
JA
157t -r /dev/stdin
1580
159t -w /dev/stdout
1600
161t -w /dev/stderr
1620
ccc6cda3
JA
163t
1641
d166f048
JA
165b
1661
ccc6cda3
JA
167t 12 -eq 34
1681
169t ! 12 -eq 34
1700
171t -n abcd -o aaa
1720
173t -n abcd -o -z aaa
1740
175t -n abcd -a aaa
1760
177t -n abcd -a -z aaa
1781
179t -o allexport
1801
181t ! -o allexport
1820
495aee44
CR
183t -v unset
1841
185t -v set
1860
187t -v set
1880
ccc6cda3
JA
189t xx -a yy
1900
191t xx -o ""
1920
193t xx -a ""
1941
195t -X -a -X
1960
197t -X -o -X
1980
199t -X -o ""
2000
201t -X -a ""
2021
203t "" -a -X
2041
205t "" -o -X
2060
207t "" -a ""
2081
209t "" -o ""
2101
211t true -o -X
2120
213t true -a -X
2140
215t ( -E )
2160
217t ( "" )
2181
d166f048
JA
219t ! -z "$z"
2200
221t ! -n "$z"
2221
223t "$zero"
2241
225t ! "$zero"
2260
227b "$zero"
2281
229b ! "$zero"
2300
231t -G /tmp/test.group
2320
233t -h /tmp/test.symlink
2340
235t 4+3 -eq 7
7117c2d2 236./test.tests: line 13: test: 4+3: integer expression expected
b72432fd 2372
d166f048 238b 4-5 -eq 7
7117c2d2 239./test.tests: line 7: [: 4+3: integer expression expected
b72432fd 2402
d166f048 241t 9 -eq 4+5
7117c2d2 242./test.tests: line 13: test: 4+5: integer expression expected
b72432fd 2432
d166f048 244b 9 -eq 4+5
7117c2d2 245./test.tests: line 7: [: 4+5: integer expression expected
b72432fd 2462
d166f048 247t A -eq 7
7117c2d2 248./test.tests: line 13: test: A: integer expression expected
b72432fd 2492
d166f048 250b A -eq 7
7117c2d2 251./test.tests: line 7: [: A: integer expression expected
b72432fd 2522
d166f048 253t 9 -eq B
7117c2d2 254./test.tests: line 13: test: B: integer expression expected
b72432fd 2552
d166f048 256b 9 -eq B
7117c2d2 257./test.tests: line 7: [: B: integer expression expected
b72432fd 2582
d166f048 259t ( 1 = 2
7117c2d2 260./test.tests: line 13: test: `)' expected
b72432fd 2612
d166f048 262b ( 1 = 2
7117c2d2 263./test.tests: line 7: [: `)' expected, found ]
b72432fd 2642
7117c2d2 265./test.tests: line 13: test: a: unary operator expected
b72432fd 2662
7117c2d2 267./test.tests: line 13: test: b: binary operator expected
b72432fd 2682
7117c2d2 269./test.tests: line 13: test: -A: unary operator expected
b72432fd 2702
7117c2d2 271./test.tests: line 13: test: too many arguments
b72432fd 2722
7117c2d2 273./test.tests: line 13: test: too many arguments
b72432fd 2742
495aee44 275./test.tests: line 418: [: missing `]'
b72432fd 2762
7117c2d2 277./test.tests: line 13: test: (: unary operator expected
b72432fd 2782
28ef6c31
JA
279t -t a
2801
281t -t addsds
2821
283t -t 42
2841
285t -t /dev/tty
2861
287t -t /dev/tty4
2881
289t -t /dev/tty4444444...
2901
3185942a 2911