]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/test.right
Imported from ../bash-2.03.tar.gz.
[thirdparty/bash.git] / tests / test.right
1 t -a noexist
2 1
3 t -a run-all
4 0
5 t -b run-all
6 1
7 t -b /dev/jb1a
8 1
9 t -c run-all
10 1
11 t -c /dev/tty
12 0
13 t -d run-all
14 1
15 t -d /etc
16 0
17 t -d ""
18 1
19 b -d ""
20 1
21 t -e noexist
22 1
23 t -e run-all
24 0
25 t -f noexist
26 1
27 t -f /dev/tty
28 1
29 t -f run-all
30 0
31 t -g run-all
32 1
33 t -g /tmp/test.setgid
34 0
35 t -k run-all
36 1
37 t -n ""
38 1
39 t -n "hello"
40 0
41 t -p run-all
42 1
43 t -r noexist
44 1
45 t -r /tmp/test.noread
46 1
47 t -r run-all
48 0
49 t -s noexist
50 1
51 t -s /dev/null
52 1
53 t -s run-all
54 0
55 t -t 20
56 1
57 t -t 0
58 0
59 t -u noexist
60 1
61 t -u run-all
62 1
63 t -u /tmp/test.setuid
64 0
65 t -w noexist
66 1
67 t -w /tmp/test.nowrite
68 1
69 t -w /dev/null
70 0
71 t -x noexist
72 1
73 t -x /tmp/test.exec
74 0
75 t -x /tmp/test.noexec
76 1
77 t -z ""
78 0
79 t -z "foo"
80 1
81 t "foo"
82 0
83 t ""
84 1
85 t -O /tmp/test.owner
86 0
87 t -S /tmp/test.socket
88 1
89 t -N /tmp/test.newer
90 0
91 t "hello" = "hello"
92 0
93 t "hello" = "goodbye"
94 1
95 t "hello" == "hello"
96 0
97 t "hello" == "goodbye"
98 1
99 t "hello" != "hello"
100 1
101 t "hello" != "goodbye"
102 0
103 t "hello" < "goodbye"
104 1
105 t "hello" > "goodbye"
106 0
107 t ! "hello" > "goodbye"
108 1
109 t 200 -eq 200
110 0
111 t 34 -eq 222
112 1
113 t -32 -eq 32
114 1
115 t 200 -ne 200
116 1
117 t 34 -ne 222
118 0
119 t 200 -gt 200
120 1
121 t 340 -gt 222
122 0
123 t 200 -ge 200
124 0
125 t 34 -ge 222
126 1
127 t 200 -lt 200
128 1
129 t 34 -lt 222
130 0
131 t 200 -le 200
132 0
133 t 340 -le 222
134 1
135 t 700 -le 1000 -a -n "1" -a "20" = "20"
136 0
137 t ! \( 700 -le 1000 -a -n "1" -a "20" = "20" \)
138 1
139 t /tmp/abc -nt /tmp/def
140 1
141 t /tmp/abc -ot /tmp/def
142 0
143 t /tmp/def -nt /tmp/abc
144 0
145 t /tmp/def -ot /tmp/abc
146 1
147 t /tmp/abc -ef /tmp/def
148 1
149 t /tmp/abc -ef /tmp/ghi
150 0
151 t -r /dev/fd/0
152 0
153 t -w /dev/fd/1
154 0
155 t -w /dev/fd/2
156 0
157 t
158 1
159 b
160 1
161 t 12 -eq 34
162 1
163 t ! 12 -eq 34
164 0
165 t -n abcd -o aaa
166 0
167 t -n abcd -o -z aaa
168 0
169 t -n abcd -a aaa
170 0
171 t -n abcd -a -z aaa
172 1
173 t -o allexport
174 1
175 t ! -o allexport
176 0
177 t xx -a yy
178 0
179 t xx -o ""
180 0
181 t xx -a ""
182 1
183 t -X -a -X
184 0
185 t -X -o -X
186 0
187 t -X -o ""
188 0
189 t -X -a ""
190 1
191 t "" -a -X
192 1
193 t "" -o -X
194 0
195 t "" -a ""
196 1
197 t "" -o ""
198 1
199 t true -o -X
200 0
201 t true -a -X
202 0
203 t ( -E )
204 0
205 t ( "" )
206 1
207 t ! -z "$z"
208 0
209 t ! -n "$z"
210 1
211 t "$zero"
212 1
213 t ! "$zero"
214 0
215 b "$zero"
216 1
217 b ! "$zero"
218 0
219 t -G /tmp/test.group
220 0
221 t -h /tmp/test.symlink
222 0
223 t 4+3 -eq 7
224 ./test-tests: test: 4+3: integer expression expected
225 2
226 b 4-5 -eq 7
227 ./test-tests: [: 4+3: integer expression expected
228 2
229 t 9 -eq 4+5
230 ./test-tests: test: 4+5: integer expression expected
231 2
232 b 9 -eq 4+5
233 ./test-tests: [: 4+5: integer expression expected
234 2
235 t A -eq 7
236 ./test-tests: test: A: integer expression expected
237 2
238 b A -eq 7
239 ./test-tests: [: A: integer expression expected
240 2
241 t 9 -eq B
242 ./test-tests: test: B: integer expression expected
243 2
244 b 9 -eq B
245 ./test-tests: [: B: integer expression expected
246 2
247 t ( 1 = 2
248 ./test-tests: test: `)' expected
249 2
250 b ( 1 = 2
251 ./test-tests: [: `)' expected, found ]
252 2
253 ./test-tests: test: a: unary operator expected
254 2
255 ./test-tests: test: b: binary operator expected
256 2
257 ./test-tests: test: -A: unary operator expected
258 2
259 ./test-tests: test: too many arguments
260 2
261 ./test-tests: test: too many arguments
262 2
263 ./test-tests: [: missing `]'
264 2
265 ./test-tests: test: (: unary operator expected
266 2