1a
2b
3a b
4argv[1] = <a>
5argv[2] = <b>
6argv[3] = <x>
7argv[4] = <a>
8argv[5] = <b>
9argv[1] = <a\ b>
10argv[2] = <x>
11argv[3] = <a\ b>
12argv[1] = <foo 'bar' baz>
13argv[1] = <a b  c d>
14argv[1] = <a b  c d>
15argv[1] = <foo ax{{{}b c d{} bar>
16argv[2] = <}>
17argv[3] = <baz>
18argv[1] = <'foo'>
19argv[1] = <'foo'>
20argv[1] = <$a>
21argv[1] = <'foo'>
22argv[1] = <foo*bar>
23argv[1] = <foo*bar>
24argv[1] = <foo*bar'}>
25argv[1] = <x'>
26<.> <x> <.> <> <.> <x> <.>
27<x> <.> <w> <.> <x> <.> <w> <.>
28<x> <.> <w> <.> <x> <.> <w> <.>
29<x> <.> <w> <.> <x> <.> <w> <.>
30<.> <w> <.> <> <.> <w> <.>
31<.> <w> <.> <> <.> <w> <.>
32<x> <.> <x> <.> <x> <.> <x> <.>
33<x> <.> <w> <.> <x> <.> <w> <.>
34<x> <.> <w> <.> <x> <.> <w> <.>
35<x> <.> <w> <.> <x> <.> <w> <.>
36argv[1] = <'bar>
37argv[1] = <foo 'bar baz>
38argv[1] = <}z>
39argv[1] = <''z}>
40argv[1] = <1>
41argv[2] = <2>
42argv[1] = <1>
43argv[2] = <2>
44argv[1] = <1>
45argv[2] = <2>
46argv[1] = <1 2>
47argv[1] = <1>
48argv[2] = <2>
49argv[1] = <1 2>
50argv[1] = <1>
51argv[2] = <2>
52argv[1] = <1 2>
53argv[1] = <1>
54argv[2] = <2>
55argv[1] = <1 2>
56argv[1] = <1>
57argv[2] = <2>
58argv[1] = <1 2>
59argv[1] = <1>
60argv[2] = <2>
61argv[1] = <1>
62argv[2] = <2>
63argv[1] = <1>
64argv[2] = <2>
65argv[1] = <12>
66argv[1] = <1 2>
67argv[1] = <1 2>
68argv[1] = <1 2>
69argv[1] = <1 2>
70argv[1] = <1 2>
71argv[1] = <1 2>
72argv[1] = <12>
73argv[1] = <12>
74argv[1] = <12>
75argv[1] = <12>
76argv[1] = <12>
77argv[1] = <12>
78argv[1] = <1 2>
79argv[1] = <1 2>
80argv[1] = <12>
81argv[1] = <12>
82normal IFS
83argv[1] = <abc>
84argv[2] = <def>
85argv[3] = <ghi>
86argv[4] = <jkl>
87argv[1] = <abc>
88argv[2] = <def>
89argv[3] = <ghi>
90argv[4] = <jkl>
91argv[1] = <abc>
92argv[2] = <def>
93argv[3] = <ghi>
94argv[4] = <jkl>
95null IFS
96argv[1] = < abc>
97argv[2] = <def ghi>
98argv[3] = <jkl >
99argv[1] = < abc def ghi jkl >
100argv[1] = < abc>
101argv[2] = <def ghi>
102argv[3] = <jkl >
103non-standard IFS
104argv[1] = < abc>
105argv[2] = <def ghi>
106argv[3] = <jkl >
107argv[1] = < abc def ghi jkl >
108argv[1] = < abc def ghi jkl >
109unset IFS
110argv[1] = < abc>
111argv[2] = <def ghi>
112argv[3] = <jkl >
113argv[1] = < abc def ghi jkl >
114argv[1] = < abc def ghi jkl >
115
116001: IFS = (unset): unset -v foo; set -- ${foo=$*}
117soh stx etx del   / soh stx etx del
118
119002: IFS = (unset): unset -v foo; set -- ${foo="$*"}
120soh stx etx del   / soh stx etx del
121
122003: IFS = (unset): unset -v foo; set -- "${foo=$*}"
123soh stx etx del   / soh stx etx del
124
125004: IFS = (unset): foo=; set -- ${foo:=$*}
126soh stx etx del   / soh stx etx del
127
128005: IFS = (unset): foo=; set -- ${foo:="$*"}
129soh stx etx del   / soh stx etx del
130
131006: IFS = (unset): foo=; set -- "${foo:=$*}"
132soh stx etx del   / soh stx etx del
133
134007: IFS = (unset): unset -v foo; set -- ${foo=$@}
135soh stx etx del   / soh stx etx del
136
137008: IFS = (unset): unset -v foo; set -- ${foo="$@"}
138soh stx etx del   / soh stx etx del
139
140009: IFS = (unset): unset -v foo; set -- "${foo=$@}"
141soh stx etx del   / soh stx etx del
142
143010: IFS = (unset): foo=; set -- ${foo:=$@}
144soh stx etx del   / soh stx etx del
145
146011: IFS = (unset): foo=; set -- ${foo:="$@"}
147soh stx etx del   / soh stx etx del
148
149012: IFS = (unset): foo=; set -- "${foo:=$@}"
150soh stx etx del   / soh stx etx del
151
152013: IFS = (null): unset -v foo; set -- ${foo=$*}
153soh stx etx del   / soh stx etx del
154
155014: IFS = (null): unset -v foo; set -- ${foo="$*"}
156soh stx etx del   / soh stx etx del
157
158015: IFS = (null): unset -v foo; set -- "${foo=$*}"
159soh stx etx del   / soh stx etx del
160
161016: IFS = (null): foo=; set -- ${foo:=$*}
162soh stx etx del   / soh stx etx del
163
164017: IFS = (null): foo=; set -- ${foo:="$*"}
165soh stx etx del   / soh stx etx del
166
167018: IFS = (null): foo=; set -- "${foo:=$*}"
168soh stx etx del   / soh stx etx del
169
170019: IFS = (null): unset -v foo; set -- ${foo=$@}
171soh stx etx del   / soh stx etx del
172
173020: IFS = (null): unset -v foo; set -- ${foo="$@"}
174soh stx etx del   / soh stx etx del
175
176021: IFS = (null): unset -v foo; set -- "${foo=$@}"
177soh stx etx del   / soh stx etx del
178
179022: IFS = (null): foo=; set -- ${foo:=$@}
180soh stx etx del   / soh stx etx del
181
182023: IFS = (null): foo=; set -- ${foo:="$@"}
183soh stx etx del   / soh stx etx del
184
185024: IFS = (null): foo=; set -- "${foo:=$@}"
186soh stx etx del   / soh stx etx del
187
188025: IFS = x: unset -v foo; set -- ${foo=$*}
189soh stx etx del   / soh stx etx del
190
191026: IFS = x: unset -v foo; set -- ${foo="$*"}
192soh stx etx del   / soh stx etx del
193
194027: IFS = x: unset -v foo; set -- "${foo=$*}"
195soh stx etx del   / soh stx etx del
196
197028: IFS = x: foo=; set -- ${foo:=$*}
198soh stx etx del   / soh stx etx del
199
200029: IFS = x: foo=; set -- ${foo:="$*"}
201soh stx etx del   / soh stx etx del
202
203030: IFS = x: foo=; set -- "${foo:=$*}"
204soh stx etx del   / soh stx etx del
205
206031: IFS = x: unset -v foo; set -- ${foo=$@}
207soh stx etx del   / soh stx etx del
208
209032: IFS = x: unset -v foo; set -- ${foo="$@"}
210soh stx etx del   / soh stx etx del
211
212033: IFS = x: unset -v foo; set -- "${foo=$@}"
213soh stx etx del   / soh stx etx del
214
215034: IFS = x: foo=; set -- ${foo:=$@}
216soh stx etx del   / soh stx etx del
217
218035: IFS = x: foo=; set -- ${foo:="$@"}
219soh stx etx del   / soh stx etx del
220
221036: IFS = x: foo=; set -- "${foo:=$@}"
222soh stx etx del   / soh stx etx del
223
224037: IFS = sp  ht  nl: unset -v foo; set -- ${foo=$*}
225soh stx etx del   / soh stx etx del
226
227038: IFS = sp  ht  nl: unset -v foo; set -- ${foo="$*"}
228soh stx etx del   / soh stx etx del
229
230039: IFS = sp  ht  nl: unset -v foo; set -- "${foo=$*}"
231soh stx etx del   / soh stx etx del
232
233040: IFS = sp  ht  nl: foo=; set -- ${foo:=$*}
234soh stx etx del   / soh stx etx del
235
236041: IFS = sp  ht  nl: foo=; set -- ${foo:="$*"}
237soh stx etx del   / soh stx etx del
238
239042: IFS = sp  ht  nl: foo=; set -- "${foo:=$*}"
240soh stx etx del   / soh stx etx del
241
242043: IFS = sp  ht  nl: unset -v foo; set -- ${foo=$@}
243soh stx etx del   / soh stx etx del
244
245044: IFS = sp  ht  nl: unset -v foo; set -- ${foo="$@"}
246soh stx etx del   / soh stx etx del
247
248045: IFS = sp  ht  nl: unset -v foo; set -- "${foo=$@}"
249soh stx etx del   / soh stx etx del
250
251046: IFS = sp  ht  nl: foo=; set -- ${foo:=$@}
252soh stx etx del   / soh stx etx del
253
254047: IFS = sp  ht  nl: foo=; set -- ${foo:="$@"}
255soh stx etx del   / soh stx etx del
256
257048: IFS = sp  ht  nl: foo=; set -- "${foo:=$@}"
258soh stx etx del   / soh stx etx del
259argv[1] = <^A^B^C^?>
260argv[1] = <^A^B^C^?>
261argv[1] = <^A^B^C^?>
262argv[1] = <^A^B^C^?>
263argv[1] = <^A^B^C^?>
264argv[1] = <^A^B^C^?>
265argv[1] = <^A^B^C^?>
266argv[1] = <^A^B^C^?>
267argv[1] = <a>
268argv[2] = <b>
269argv[1] = <a>
270argv[2] = <b>
271argv[1] = <a>
272argv[2] = <b>
273argv[1] = <a>
274argv[2] = <b>
275[  abc    def  ghi  jkl /  abc    def  ghi  jkl ]
276[  abc    def  ghi  jkl ]
277[  abc    def  ghi  jkl /  abc    def  ghi  jkl /  abc    def  ghi  jkl ]
2785: notOK
279OK
280OK
2815: $'not\ttoo\nbad'
282"A"
283A
284argv[1] = <"A">
285argv[1] = <A>
286argv[1] = <A>
287./posixexp.tests: line 97: unexpected EOF while looking for matching `}'
288./posixexp.tests: line 98: syntax error: unexpected end of file
289