File: cond.right

package info (click to toggle)
bash 5.3-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 43,860 kB
  • sloc: ansic: 134,738; sh: 8,866; yacc: 5,966; makefile: 4,697; perl: 4,105; asm: 48; awk: 23; sed: 16
file content (191 lines) | stat: -rw-r--r-- 3,236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
returns: 0
returns: 0
returns: 1
returns: 0
1
0
1
0
returns: 0
returns: 0
returns: 0
returns: 0
returns: 1
returns: 0
./cond.tests: line 65: [[: X: integer expected
returns: 2
returns: 0
returns: 1
returns: 1
returns: 1
returns: 1
returns: 0
returns: 0
returns: 0
returns: 1
returns: 0
returns: 1
returns: 0
returns: 1
returns: 1
returns: 0
./cond.tests: line 126: [[: 4+: arithmetic syntax error: operand expected (error token is "+")
returns: 1
returns: 0
returns: 0
returns: 0
returns: 0
returns: 1
returns: 0
returns: 0
returns: 1
returns: 0
ok
jbig2dec

found 1
libc
found 2
libc
ok 42
ok 43
ok 1
ok 2
ok 3
ok 4
ok 5
ok c1
ok c2
ok c3
ok c4
ok c5
ok c6
match 1
match 2
match 3
match 4
match 5
match 6
yes 1
yes 2
yes 3
yes 4
yes 5
yes 6
Dog 01 is Wiggles
Dog 01 is Wiggles
rematch 1
matches 7
matches 8
matches 9
unquoted matches
match control-a 1
match control-a 2
match control-a 3
match control-a 4
match control-a 5
ok 1
ok 2
ok 3
ok 4
ok 4a
ok 5
ok 6
ok 7 -- d
ok 8 -- o
ok 9
ok 10
ok 11
ok 12
argv[1] = <\^?>
0
1
1
0
1
1
0
1
1
[[ $'\001' =~ $'\001' ]] -> 0
[[ $'\001' =~ $'\\\001' ]] -> 0
[[ $'\001' =~ $'\\[\001]' ]] -> 1
---
[[ $'\a' =~ $'\a' ]] -> 0
[[ $'\a' =~ $'\\\a' ]] -> 0
[[ $'\a' =~ $'\\[\a]' ]] -> 1
---
[[ $'\177' =~ $'\177' ]] -> 0
[[ $'\177' =~ $'\\\177' ]] -> 0
[[ $'\177' =~ $'\\[\177]' ]] -> 1
---
0
1
1
0
1
1
0
1
1
0
1
0
1
1
0
0
0
1
1
argv[1] = <^A>
argv[2] = <^A>
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
bash: -c: line 1: unexpected token `EOF', expected `)'
bash: -c: line 2: syntax error: unexpected end of file from `[[' command on line 1
bash: -c: line 1: unexpected EOF while looking for `]]'
bash: -c: line 2: syntax error: unexpected end of file from `[[' command on line 1
bash: -c: line 1: syntax error in conditional expression: unexpected token `]'
bash: -c: line 1: syntax error near `]'
bash: -c: line 1: `[[ ( -t X ) ]'
bash: -c: line 1: unexpected argument `&' to conditional unary operator
bash: -c: line 1: syntax error near `&'
bash: -c: line 1: `[[ -n &'
bash: -c: line 1: syntax error in conditional expression: unexpected token `&'
bash: -c: line 1: syntax error near `&'
bash: -c: line 1: `[[ -n XX &'
bash: -c: line 1: syntax error in conditional expression: unexpected token `&'
bash: -c: line 1: syntax error near `&'
bash: -c: line 1: `[[ -n XX & ]'
bash: -c: line 1: unexpected token `&', conditional binary operator expected
bash: -c: line 1: syntax error near `&'
bash: -c: line 1: `[[ 4 & ]]'
bash: -c: line 1: unexpected argument `&' to conditional binary operator
bash: -c: line 1: syntax error near `&'
bash: -c: line 1: `[[ 4 > & ]]'
bash: -c: line 1: unexpected token `&' in conditional command
bash: -c: line 1: syntax error near `&'
bash: -c: line 1: `[[ & ]]'
bash: -c: line 1: unexpected token `7', conditional binary operator expected
bash: -c: line 1: syntax error near `7'
bash: -c: line 1: `[[ -Q 7 ]]'
bash: -c: line 1: unexpected argument `<' to conditional unary operator
bash: -c: line 1: syntax error near `<'
bash: -c: line 1: `[[ -n < ]]'
ERR: 22: -[[ -n $unset ]]- failed
ERR: 28: -[[ -z nonempty ]]- failed
+ [[ -t X ]]
./cond-xtrace1.sub: line 6: [[: X: integer expected
+ [[ '' > 7 ]]
+ [[ -n X ]]
+ ivar=42
+ [[ 42 -eq 42 ]]
+ [[ -n a ]]
+ [[ -n b ]]