]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/printf.right
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / printf.right
CommitLineData
95732b49
JA
1printf: usage: printf [-v var] format [arguments]
2printf: usage: printf [-v var] format [arguments]
310
cce855bc
JA
4 one
5one\ctwo
64\.2
7no newline now newline
8%
bb70624e
JA
9%
10%d
cce855bc
JA
11A
12unquoted
13unquoted quoted
14unquoted quoted
15this\&that
161 2 3 4 5
17onestring 0 0 0
18onestring 0 0 0.00
19--4.2 --
20--4.2 --
21--
ac50fbac 22^@81--
cce855bc
JA
23-- A--
24-- A--
25A7
26A7
27A7
28A7
29A7
30--\"abcd\"--
31--\'abcd\'--
32--a\x--
95732b49 33./printf.tests: line 82: printf: missing hex digit for \x
cce855bc
JA
34--\x--
35----
36----
37--4.2
bb70624e
JA
38--4\.2--
39--\--
b72432fd
JA
40
41
cce855bc
JA
42 4.4BSD
43 4.4BSD
44 4.4BSD
45 4.4BSD
464.4BSD
474.4BSD
48 4.4BSD
49--4.4BSD --
50 4.
514.4
52--4.4BSD --
53255 255 255 0377 0xff 0xFF
54255 255 255 0377 0xff 0XFF
55255 255 255 0377 0xff 0xFF
56255 255 255 0377 0xff 0XFF
57 42
58 -42
59 42
60 -42
614.20
624.20
63 4.2
644.20
654.20
66 4.2
674.200000E+00
684.200000e+00
694.2E+00
704.2e+00
714.2
724.2
73 4.2
74 4.2
75115
76115
770163
780163
790x73
800X73
81115.00
82115.00
83-- abcd--
84-- abcd--
85-- abcdefghij--
86-- abcdefghij--
bb70624e
JA
87'abcd'
88\'abcd\'
89\abcd\
90\abcd\
9126
9226
9326
95732b49
JA
94./printf.tests: line 206: printf: `%10': missing format character
95./printf.tests: line 207: printf: `M': invalid format character
96ab./printf.tests: line 210: printf: `y': invalid format character
97./printf.tests: line 213: printf: GNU: invalid number
f73dda09 980
95732b49 99./printf.tests: line 214: printf: GNU: invalid number
f73dda09
JA
1000
101-
102(foo )(bar )
1030
95732b49
JA
104 ab cd ef
10513
ac50fbac
CR
106^G
107^G
108^@7
109^Ge
b80f6443 110"?
0628567a
JA
11100001
11200001
113 1
1141
3185942a
JA
1150
1160
117 0
118 0
1194
1204
121 4
122 4
1230.000000
1240.000000
1250.00
1260.00
1274.000000
1284.000000
1294.00
1304.00
1310.000000E+00
1320.000000e+00
1330.00E+00
1340.00e+00
1354.000000E+00
1364.000000e+00
1374.00E+00
1384.00e+00
1399B3A59A5
140q
141''
142''
143s
144
145
146b
147
148
149xx
150xx
495aee44
CR
151 one
152one\ctwo
1534\.2
154no newline now newline
155%
156%
157%d
158A
159unquoted
160unquoted quoted
161unquoted quoted
162this\&that
1631 2 3 4 5
164onestring 0 0 0
165onestring 0 0 0.00
166--4.2 --
167--4.2 --
168-- A--
169-- A--
170A7
171A7
172A7
173--\"abcd\"--
174--\'abcd\'--
175--a\x--
176./printf1.sub: line 94: printf: missing hex digit for \x
177--\x--
178----
179----
180--4.2
181--4\.2--
182--\--
183
184
185 4.4BSD
186 4.4BSD
187 4.4BSD
188 4.4BSD
1894.4BSD
1904.4BSD
191 4.4BSD
192--4.4BSD --
193 4.
1944.4
195--4.4BSD --
196255 255 255 0377 0xff 0xFF
197255 255 255 0377 0xff 0XFF
198255 255 255 0377 0xff 0xFF
199255 255 255 0377 0xff 0XFF
200 42
201 -42
202 42
203 -42
2044.20
2054.20
206 4.2
2074.20
2084.20
209 4.2
2104.200000E+00
2114.200000e+00
2124.2E+00
2134.2e+00
2144.2
2154.2
216 4.2
217 4.2
218115
219115
2200163
2210163
2220x73
2230X73
224115.00
225115.00
226-- abcd--
227-- abcd--
228-- abcdefghij--
229-- abcdefghij--
230'abcd'
231\'abcd\'
232\abcd\
233\abcd\
23426
23526
23626
237./printf1.sub: line 280: printf: `%10': missing format character
238./printf1.sub: line 281: printf: `M': invalid format character
239./printf1.sub: line 284: printf: `y': invalid format character
240./printf1.sub: line 287: printf: GNU: invalid number
2410
242./printf1.sub: line 289: printf: GNU: invalid number
2430
244-
245(foo )(bar )
2460
247 ab cd ef
24813
ac50fbac
CR
249^G
250^G
251^Ge
495aee44
CR
252"?
25316:09:15
ac50fbac 254./printf3.sub: line 14: printf: warning: `Z': invalid time format specification
495aee44
CR
255%(abde)Z
25630-May-2010 16:09:15
25705/30/10 15:09:15
258current time: 2010-05-30 04:09:15 PM
259epoch time: 1969-12-31 07:00:00 PM -0500
260random time: 2010-05-30 04:09:15 PM -0400
261local time: Sun May 30 16:09:15 EDT 2010
262Sun May 30 16:09:15 EDT 2010 date-style time
26305/30/10 (foo) 16:09:15 date-style time
ac50fbac
CR
264x 123x
265x 123x
266x 123x
267x 123x
268x 123x
269x 123x
270x 123.00x
271x 123.00x
272x 123.00x
273x 123.00x
274x123 x
275x123 x
276x+00001e+02x
277x+00001e+02x
278x+000000123x
279x+000000123x
280x+00001e+02x
281x+00001e+02x
282x +123x
283x +123x
284x +123x
285x +123x
286x 7bx
287x 7bx
288x+123 x
289x+123 x
290x+123 x
291x+123 x
292-123.000000
293-123.000000
294x +123x
295x +123x
296x +123x
297x +123x