3 This is how a comment looks
: # comment
5 make
: "cond1" line 75: warning: extra else
6 make
: "cond1" line 85: warning: extra else
8 A
='other' B
='unknown' C
='clever' o
='no,no'
14 !((var
!= var
) && defined
(name))
23 make
: warning
: String comparison operator should be either
== or
!=
24 make
: Bad conditional expression `
"0" > 0' in "0" > 0?OK:No
27 make
: "error" line 3: just FYI
28 make
: "error" line 4: warning: this could be serious
29 make
: "error" line 5: this is fatal
30 UT_DOLLAR
=This is $UT_FU
31 UT_FOO
=foobar is fubar
35 UT_ALL
=even this gets exported
37 UT_DOLLAR
=This is $UT_FU
39 UT_FOO
=foobar is fubar
49 .ERROR
: Looks like
'sad' is upset.
53 make
: stopped in unit
-tests
78 make
: Graph cycles through `cycle
.2.99'
79 make: Graph cycles through `cycle.2.98'
80 make
: Graph cycles through `cycle
.2.97'
92 Expect: Unknown modifier 'Z
'
93 make: Unknown modifier 'Z
'
95 Expect: Unknown modifier 'Z
'
96 make: Unknown modifier 'Z
'
98 Expect: Unclosed variable specification for VAR
99 make: Unclosed variable specification (expecting '}') for "VAR" (value "Thevariable") modifier S
100 VAR:S,V,v,=Thevariable
101 Expect: Unclosed variable specification for VAR
102 make: Unclosed variable specification after complex modifier (expecting '}') for VAR
103 VAR:S,V,v,=Thevariable
104 Expect: Unclosed substitution for VAR (, missing)
105 make: Unclosed substitution for VAR (, missing)
107 LIB=a X_LIBS:M${LIB${LIB:tu}} is "/tmp/liba.a"
108 LIB=a X_LIBS:M*/lib${LIB}.a is "/tmp/liba.a"
109 LIB=a X_LIBS:M*/lib${LIB}.a:tu is "/TMP/LIBA.A"
110 LIB=b X_LIBS:M${LIB${LIB:tu}} is ""
111 LIB=b X_LIBS:M*/lib${LIB}.a is ""
112 LIB=b X_LIBS:M*/lib${LIB}.a:tu is ""
113 LIB=c X_LIBS:M${LIB${LIB:tu}} is ""
114 LIB=c X_LIBS:M*/lib${LIB}.a is ""
115 LIB=c X_LIBS:M*/lib${LIB}.a:tu is ""
116 LIB=d X_LIBS:M${LIB${LIB:tu}} is "/tmp/libd.a"
117 LIB=d X_LIBS:M*/lib${LIB}.a is "/tmp/libd.a"
118 LIB=d X_LIBS:M*/lib${LIB}.a:tu is "/TMP/LIBD.A"
119 LIB=e X_LIBS:M${LIB${LIB:tu}} is "/tmp/libe.a"
120 LIB=e X_LIBS:M*/lib${LIB}.a is "/tmp/libe.a"
121 LIB=e X_LIBS:M*/lib${LIB}.a:tu is "/TMP/LIBE.A"
123 path=':/bin
:/tmp
::/:.
:/no
/such
/dir:.
'
124 path='/bin
:/tmp
:/:/no
/such
/dir'
125 path='/bin
:/tmp
:/:/no
/such
/dir'
126 path='/bin
':'/tmp
':'/':'/no
/such
/dir'
127 path='/bin
':'/tmp
':'/':'/no
/such
/dir'
128 path_/usr/xbin=/opt/xbin/
129 paths=/bin /tmp / /no/such/dir /opt/xbin
130 PATHS=/BIN /TMP / /NO/SUCH/DIR /OPT/XBIN
132 LIST = one two three four five six seven eight nine ten
133 LIST:O = eight five four nine one seven six ten three two
138 make: Bad modifier `:OX' for LIST
140 make
: Bad modifier `
:OxXX
' for LIST
142 LIST="one two three four five six"
143 LIST:ts,="one,two,three,four,five,six"
144 LIST:ts/:tu="ONE/TWO/THREE/FOUR/FIVE/SIX"
145 LIST:ts::tu="ONE:TWO:THREE:FOUR:FIVE:SIX"
146 LIST:ts:tu="ONETWOTHREEFOURFIVESIX"
147 LIST:tu:ts/="ONE/TWO/THREE/FOUR/FIVE/SIX"
148 LIST:ts:="one:two:three:four:five:six"
149 LIST:ts="onetwothreefourfivesix"
150 LIST:ts:S/two/2/="one2threefourfivesix"
151 LIST:S/two/2/:ts="one2threefourfivesix"
152 LIST:ts/:S/two/2/="one/2/three/four/five/six"
153 Pretend the '/' in '/n
' etc. below are back-slashes.
160 LIST:ts/t="one two three four five six"
167 make: Bad modifier `:tx' for LIST
169 make
: Bad modifier `
:ts\x
' for LIST
170 LIST:ts/x:tu="\x:tu}"
172 FU_mod-ts:ts:T="cool" == cool?
173 B.${AAA:ts}="Baaa" == Baaa?
174 make: Bad modifier `:[]' for LIST
175 LIST
:[]="" is an error
176 LIST
:[0]="one two three four five six"
177 LIST
:[0x0]="one two three four five six"
178 LIST
:[000]="one two three four five six"
179 LIST
:[*]="one two three four five six"
180 LIST
:[@
]="one two three four five six"
181 LIST
:[0]:C
/ /,/="one,two three four five six"
182 LIST
:[0]:C
/ /,/g
="one,two,three,four,five,six"
183 LIST
:[0]:C
/ /,/1g
="one,two,three,four,five,six"
184 LIST
:[*]:C
/ /,/="one,two three four five six"
185 LIST
:[*]:C
/ /,/g
="one,two,three,four,five,six"
186 LIST
:[*]:C
/ /,/1g
="one,two,three,four,five,six"
187 LIST
:[@
]:C
/ /,/="one two three four five six"
188 LIST
:[@
]:C
/ /,/g
="one two three four five six"
189 LIST
:[@
]:C
/ /,/1g
="one two three four five six"
190 LIST
:[@
]:[0]:C
/ /,/="one,two three four five six"
191 LIST
:[0]:[@
]:C
/ /,/="one two three four five six"
192 LIST
:[@
]:[*]:C
/ /,/="one,two three four five six"
193 LIST
:[*]:[@
]:C
/ /,/="one two three four five six"
197 ESCAPEDSPACE
:[#
]="1" == 1 ?
199 REALLYSPACE
:[#
]="1" == 1 ?
201 LIST
:[0]:[#
]="1" == 1 ?
202 LIST
:[*]:[#
]="1" == 1 ?
208 ESCAPEDSPACE
:[1]="\ "
210 REALLYSPACE
:[1]="" == "" ?
211 REALLYSPACE
:[*]:[1]=" " == " " ?
213 make
: Bad modifier `
:[1.
]' for LIST
214 LIST:[1.]="" is an error
215 make: Bad modifier `:[1].' for LIST
216 LIST
:[1].
="}" is an error
221 make
: Bad modifier `
:[-]' for LIST
222 LIST:[-]="" is an error
223 make: Bad modifier `:[--]' for LIST
224 LIST
:[--]="" is an error
233 LIST
:[0]:[1]="one two three four five six"
234 LIST
:[*]:[1]="one two three four five six"
239 LIST
:[*]:C
/ /,/:[2]=""
240 LIST
:[*]:C
/ /,/:[*]:[2]=""
241 LIST
:[*]:C
/ /,/:[@
]:[2]="three"
242 make
: Bad modifier `
:[1.
]' for LIST
243 LIST:[1.]="" is an error
244 make: Bad modifier `:[1..]' for LIST
245 LIST
:[1..
]="" is an error
247 make
: Bad modifier `
:[1.
.1.
]' for LIST
248 LIST:[1..1.]="" is an error
249 LIST:[1..2]="one two"
250 LIST:[2..1]="two one"
251 LIST:[3..-2]="three four five"
252 LIST:[-4..4]="three four"
253 make: Bad modifier `:[0..1]' for LIST
254 LIST
:[0.
.1]="" is an error
255 make
: Bad modifier `
:[-1.
.0]' for LIST
256 LIST:[-1..0]="" is an error
257 LIST:[-1..1]="six five four three two one"
258 LIST:[0..0]="one two three four five six"
259 LIST:[3..99]="three four five six"
260 LIST:[-3..-99]="four three two one"
261 LIST:[-99..-3]="one two three four"
264 LIST:[${ZERO}]="one two three four five six"
265 LIST:[${ZERO}x${ONE}]="one"
267 LIST:[${MINUSONE}]="six"
268 LIST:[${STAR}]="one two three four five six"
269 LIST:[${AT}]="one two three four five six"
270 make: Bad modifier `:[${EMPTY' for LIST
271 LIST
:[$
{EMPTY
}]="" is an error
272 LIST
:[$
{LONGLIST
:[21]:S
/2//}]="one"
273 LIST
:[$
{LIST
:[#
]}]="six"
274 LIST
:[$
{LIST
:[$
{HASH
}]}]="six"
275 LIST
:S
/ /,/="one two three four five six"
276 LIST
:S
/ /,/W
="one,two three four five six"
277 LIST
:S
/ /,/gW
="one,two,three,four,five,six"
280 LIST
:C
/ /,/="one two three four five six"
281 LIST
:C
/ /,/W
="one,two three four five six"
282 LIST
:C
/ /,/gW
="one,two,three,four,five,six"
285 LIST
:tW
="one two three four five six"
286 LIST
:tw
="one two three four five six"
287 LIST
:tW
:C
/ /,/="one,two three four five six"
288 LIST
:tW
:C
/ /,/g
="one,two,three,four,five,six"
289 LIST
:tW
:C
/ /,/1g
="one,two,three,four,five,six"
290 LIST
:tw
:C
/ /,/="one two three four five six"
291 LIST
:tw
:C
/ /,/g
="one two three four five six"
292 LIST
:tw
:C
/ /,/1g
="one two three four five six"
293 LIST
:tw
:tW
:C
/ /,/="one,two three four five six"
294 LIST
:tW
:tw
:C
/ /,/="one two three four five six"
295 .TARGET
="phony" .PREFIX="phony" .IMPSRC=""
296 .TARGET
="all" .PREFIX="all" .IMPSRC=""
297 .TARGET
="ok" .PREFIX="ok" .IMPSRC=""
298 .TARGET
="also.ok" .PREFIX="also.ok" .IMPSRC=""
299 .TARGET
="bug" .PREFIX="bug" .IMPSRC=""
300 Posix says we should
execute the command as
if run by
system(3)
301 Expect
'Hello,' and
'World!'
305 a command prefixed by
'+' executes even with
-n
309 echo
"a command prefixed by '+' executes even with -n"
310 a command prefixed by
'+' executes even with
-n
315 echo
"a command prefixed by '+' executes even with -n"
316 a command prefixed by
'+' executes even with
-n
317 { echo another command
319 Now we expect an error...
320 *** Error code
1 (continuing
)
321 `all
' not remade because of errors.
324 FOOBAR = foobar fubar
329 The answer is unknown
330 The answer is unknown
338 UT_DOLLAR=This is $UT_FU
342 default FU=<v>fu</v> FOO=<v>foo</v> VAR=<v></v>
343 two FU=<v>bar</v> FOO=<v>goo</v> VAR=<v></v>
344 three FU=<v>bar</v> FOO=<v>goo</v> VAR=<v></v>
345 four FU=<v>bar</v> FOO=<v>goo</v> VAR=<v>Internal</v>
346 five FU=<v>bar</v> FOO=<v>goo</v> VAR=<v>Internal</v>
349 show-v v=override k=override
350 *** Error code 1 (ignored)
351 *** Error code 1 (ignored)