Lines Matching refs:IFS

32 #define IFS " \n\t"  macro
46 { 0, NULL, "one", 0, 1, { "one", }, IFS },
47 { 0, NULL, "one two", 0, 2, { "one", "two", }, IFS },
48 { 0, NULL, "one two three", 0, 3, { "one", "two", "three", }, IFS },
49 { 0, NULL, " \tfoo\t\tbar ", 0, 2, { "foo", "bar", }, IFS },
52 { 0, NULL, "one \"two three\"", 0, 2, { "one", "two three", }, IFS },
54 { 0, "two three", "one \"$var\"", 0, 2, { "one", "two three", }, IFS },
55 { 0, "two three", "one $var", 0, 3, { "one", "two", "three", }, IFS },
85 { 0, "foo", "${var}", 0, 1, { "foo", }, IFS },
86 { 0, "foo", "$var", 0, 1, { "foo", }, IFS },
87 { 0, "foo", "\\\"$var\\\"", 0, 1, { "\"foo\"", }, IFS },
88 { 0, "foo", "%$var%", 0, 1, { "%foo%", }, IFS },
89 { 0, "foo", "-$var-", 0, 1, { "-foo-", }, IFS },
92 { 0, NULL, "\"quoted\"", 0, 1, { "quoted", }, IFS },
93 { 0, "foo", "\"$var\"\"$var\"", 0, 1, { "foofoo", }, IFS },
94 { 0, NULL, "'singly-quoted'", 0, 1, { "singly-quoted", }, IFS },
95 { 0, NULL, "contin\\\nuation", 0, 1, { "continuation", }, IFS },
96 { 0, NULL, "explicit ''", 0, 2, { "explicit", "", }, IFS },
97 { 0, NULL, "explicit \"\"", 0, 2, { "explicit", "", }, IFS },
98 { 0, NULL, "explicit ``", 0, 1, { "explicit", }, IFS },
101 { 0, NULL, "$(echo hello)", 0, 1, { "hello", }, IFS },
102 { 0, NULL, "$( (echo hello) )", 0, 1, { "hello", }, IFS },
103 { 0, NULL, "$((echo hello);(echo there))", 0, 2, { "hello", "there", }, IFS },
104 { 0, NULL, "`echo one two`", 0, 2, { "one", "two", }, IFS },
105 { 0, NULL, "$(echo ')')", 0, 1, { ")" }, IFS },
106 { 0, NULL, "$(echo hello; echo)", 0, 1, { "hello", }, IFS },
107 { 0, NULL, "a$(echo b)c", 0, 1, { "abc", }, IFS },
110 { 0, NULL, "$((1 + 1))", 0, 1, { "2", }, IFS },
111 { 0, NULL, "$((2-3))", 0, 1, { "-1", }, IFS },
112 { 0, NULL, "$((-1))", 0, 1, { "-1", }, IFS },
113 { 0, NULL, "$[50+20]", 0, 1, { "70", }, IFS },
114 { 0, NULL, "$(((2+3)*(4+5)))", 0, 1, { "45", }, IFS },
115 { 0, NULL, "$((010))", 0, 1, { "8" }, IFS },
116 { 0, NULL, "$((0x10))", 0, 1, { "16" }, IFS },
117 { 0, NULL, "$((010+0x10))", 0, 1, { "24" }, IFS },
118 { 0, NULL, "$((-010+0x10))", 0, 1, { "8" }, IFS },
119 { 0, NULL, "$((-0x10+010))", 0, 1, { "-8" }, IFS },
122 { 0, NULL, "${var:-bar}", 0, 1, { "bar", }, IFS },
123 { 0, NULL, "${var-bar}", 0, 1, { "bar", }, IFS },
124 { 0, "", "${var:-bar}", 0, 1, { "bar", }, IFS },
125 { 0, "foo", "${var:-bar}", 0, 1, { "foo", }, IFS },
126 { 0, "", "${var-bar}", 0, 0, { NULL, }, IFS },
127 { 0, NULL, "${var:=bar}", 0, 1, { "bar", }, IFS },
128 { 0, NULL, "${var=bar}", 0, 1, { "bar", }, IFS },
129 { 0, "", "${var:=bar}", 0, 1, { "bar", }, IFS },
130 { 0, "foo", "${var:=bar}", 0, 1, { "foo", }, IFS },
131 { 0, "", "${var=bar}", 0, 0, { NULL, }, IFS },
132 { 0, "foo", "${var:?bar}", 0, 1, { "foo", }, IFS },
133 { 0, NULL, "${var:+bar}", 0, 0, { NULL, }, IFS },
134 { 0, NULL, "${var+bar}", 0, 0, { NULL, }, IFS },
135 { 0, "", "${var:+bar}", 0, 0, { NULL, }, IFS },
136 { 0, "foo", "${var:+bar}", 0, 1, { "bar", }, IFS },
137 { 0, "", "${var+bar}", 0, 1, { "bar", }, IFS },
138 { 0, "12345", "${#var}", 0, 1, { "5", }, IFS },
139 { 0, NULL, "${var:-'}'}", 0, 1, { "}", }, IFS },
140 { 0, NULL, "${var-}", 0, 0, { NULL }, IFS },
142 { 0, "pizza", "${var#${var}}", 0, 0, { NULL }, IFS },
143 { 0, "pepperoni", "${var%$(echo oni)}", 0, 1, { "pepper" }, IFS },
144 { 0, "6pack", "${var#$((6))}", 0, 1, { "pack" }, IFS },
145 { 0, "b*witched", "${var##b*}", 0, 0, { NULL }, IFS },
146 { 0, "b*witched", "${var##\"b*\"}", 0, 1, { "witched" }, IFS },
147 { 0, "banana", "${var%na*}", 0, 1, { "bana", }, IFS },
148 { 0, "banana", "${var%%na*}", 0, 1, { "ba", }, IFS },
149 { 0, "borabora-island", "${var#*bora}", 0, 1, { "bora-island", }, IFS },
150 { 0, "borabora-island", "${var##*bora}", 0, 1, { "-island", }, IFS },
151 { 0, "coconut", "${var##\\*co}", 0, 1, { "coconut", }, IFS },
152 { 0, "100%", "${var%0%}", 0, 1, { "10" }, IFS },
155 { 0, NULL, "???", 0, 2, { "one", "two", }, IFS },
156 { 0, NULL, "[ot]??", 0, 2, { "one", "two", }, IFS },
157 { 0, NULL, "t*", 0, 2, { "three", "two", }, IFS },
158 { 0, NULL, "\"t\"*", 0, 2, { "three", "two", }, IFS },
161 { 0, "one two", "$var", 0, 2, { "one", "two", }, IFS },
162 { 0, "one two three", "$var", 0, 3, { "one", "two", "three", }, IFS },
163 { 0, " \tfoo\t\tbar ", "$var", 0, 2, { "foo", "bar", }, IFS },
166 { 0, NULL, "\"$(echo hello there)\"", 0, 1, { "hello there", }, IFS },
167 { 0, NULL, "\"$(echo \"hello there\")\"", 0, 1, { "hello there", }, IFS },
168 { 0, NULL, "${var=one two} \"$var\"", 0, 3, { "one", "two", "one two", }, IFS },
169 { 0, "1", "$(( $(echo 3)+$var ))", 0, 1, { "4", }, IFS },
170 { 0, NULL, "\"$(echo \"*\")\"", 0, 1, { "*", }, IFS },
171 { 0, NULL, "\"a\n\n$(echo)b\"", 0, 1, { "a\n\nb", }, IFS },
172 { 0, "foo", "*$var*", 0, 1, { "*foo*", }, IFS },
173 { 0, "o thr", "*$var*", 0, 2, { "two", "three" }, IFS },
181 { 0, NULL, "\\*\"|&;<>\"\\(\\)\\{\\}", 0, 1, { "*|&;<>(){}", }, IFS },
182 { 0, "???", "$var", 0, 1, { "???", }, IFS },
183 { 0, NULL, "$var", 0, 0, { NULL, }, IFS },
184 { 0, NULL, "\"\\n\"", 0, 1, { "\\n", }, IFS },
185 { 0, NULL, "", 0, 0, { NULL, }, IFS },
186 { 0, NULL, "${1234567890123456789012}", 0, 0, { NULL, }, IFS },
189 { 0, NULL, "one two", WRDE_DOOFFS, 2, { "one", "two", }, IFS },
190 { 0, NULL, "appended", WRDE_APPEND, 3, { "pre1", "pre2", "appended", }, IFS },
191 { 0, NULL, "appended", WRDE_DOOFFS|WRDE_APPEND, 3, { "pre1", "pre2", "appended", }, IFS },
195 { WRDE_BADCHAR, NULL, "pipe|symbol", 0, 0, { NULL, }, IFS },
196 { WRDE_BADCHAR, NULL, "&ampersand", 0, 0, { NULL, }, IFS },
197 { WRDE_BADCHAR, NULL, "semi;colon", 0, 0, { NULL, }, IFS },
198 { WRDE_BADCHAR, NULL, "<greater", 0, 0, { NULL, }, IFS },
199 { WRDE_BADCHAR, NULL, "less>", 0, 0, { NULL, }, IFS },
200 { WRDE_BADCHAR, NULL, "(open-paren", 0, 0, { NULL, }, IFS },
201 { WRDE_BADCHAR, NULL, "close-paren)", 0, 0, { NULL, }, IFS },
202 { WRDE_BADCHAR, NULL, "{open-brace", 0, 0, { NULL, }, IFS },
203 { WRDE_BADCHAR, NULL, "close-brace}", 0, 0, { NULL, }, IFS },
204 { WRDE_BADVAL, NULL, "$var", WRDE_UNDEF, 0, { NULL, }, IFS },
205 { WRDE_BADVAL, NULL, "$9", WRDE_UNDEF, 0, { NULL, }, IFS },
206 { WRDE_SYNTAX, NULL, "$[50+20))", 0, 0, { NULL, }, IFS },
207 { WRDE_SYNTAX, NULL, "${%%noparam}", 0, 0, { NULL, }, IFS },
208 { WRDE_SYNTAX, NULL, "${missing-brace", 0, 0, { NULL, }, IFS },
209 { WRDE_SYNTAX, NULL, "$(for i in)", 0, 0, { NULL, }, IFS },
210 { WRDE_SYNTAX, NULL, "$((2+))", 0, 0, { NULL, }, IFS },
211 { WRDE_SYNTAX, NULL, "`", 0, 0, { NULL, }, IFS },
212 { WRDE_SYNTAX, NULL, "$((010+4+))", 0, 0, { NULL }, IFS },
214 { WRDE_SYNTAX, NULL, "`\\", 0, 0, { NULL, }, IFS }, /* BZ 18042 */
215 { WRDE_SYNTAX, NULL, "${", 0, 0, { NULL, }, IFS }, /* BZ 18043 */
216 { WRDE_SYNTAX, NULL, "L${a:", 0, 0, { NULL, }, IFS }, /* BZ 18043#c4 */
276 ts.ifs = IFS; in do_test()
286 ts.ifs = IFS; in do_test()
301 ts.ifs = IFS; in do_test()
317 ts.ifs = IFS; in do_test()