NetBSD/usr.bin/make/unit-tests/modmisc.exp

164 lines
3.4 KiB
Plaintext

make: Unknown modifier '$'
path=':/bin:/tmp::/:.:/no/such/dir:.'
path='/bin:/tmp:/:/no/such/dir'
path='/bin:/tmp:/:/no/such/dir'
path='/bin':'/tmp':'/':'/no/such/dir'
path='/bin':'/tmp':'/':'/no/such/dir'
path_/usr/xbin=/opt/xbin/
paths=/bin /tmp / /no/such/dir /opt/xbin
PATHS=/BIN /TMP / /NO/SUCH/DIR /OPT/XBIN
The answer is 42
dirname of 'a/b/c def a.b.c a.b/c a a.a .gitignore a a.a' is 'a/b . . a.b . . . . .'
basename of 'a/b/c def a.b.c a.b/c a a.a .gitignore a a.a' is 'c def a.b.c c a a.a .gitignore a a.a'
suffix of 'a/b/c def a.b.c a.b/c a a.a .gitignore a a.a' is 'c b/c a gitignore a'
root of 'a/b/c def a.b.c a.b/c a a.a .gitignore a a.a' is 'a/b/c def a.b a a a a a'
S:
C:
@:
S:empty
C:empty
@:
mod-subst:
:a b b c:
:a b b c:
: b c:
:a c:
:x__ 3 x__ 3:
12345
mod-subst-delimiter:
1 two 3 horizontal tabulator
1 two 3 space
1 two 3 exclamation mark
1 two 3 double quotes
1 two 3 hash
1 two 3 dollar
1 two 3 percent
1 two 3 apostrophe
1 two 3 opening parenthesis
1 two 3 closing parenthesis
1 two 3 digit
1 two 3 colon
1 two 3 less than sign
1 two 3 equal sign
1 two 3 greater than sign
1 two 3 question mark
1 two 3 at
1 two 3 letter
1 two 3 opening bracket
1 two 3 backslash
1 two 3 closing bracket
1 two 3 caret
1 two 3 opening brace
1 two 3 vertical line
1 two 3 closing brace
1 two 3 tilde
mod-subst-chain:
A B c.
make: Unknown modifier 'i'
.
mod-regex:
:a b b c:
:a b b c:
: b c:
make: Regex compilation error: (details omitted)
:C,word,____,:Q}:
:a c:
:x__ 3 x__ 3:
:+one+ +two+ +three+:
:x1y x2y x3y:
:x1y x2y x3y:
:mod-loop-varname: :x1y x2y x3y: ::
:x1y x2y x3y:
mod-loop-resolve:w1d2d3w w2i3w w1i2d3 2i${RES3}w w1d2d3 2i${RES3} 1i${RES2}w:
mod-loop-varname-dollar:(1) (2) (3).
mod-loop-varname-dollar:() () ().
mod-loop-varname-dollar:() () ().
mod-subst-dollar:$1:
mod-subst-dollar:$2:
mod-subst-dollar:$3:
mod-subst-dollar:$4:
mod-subst-dollar:$5:
mod-subst-dollar:$6:
mod-subst-dollar:$7:
mod-subst-dollar:$8:
mod-subst-dollar:$40:
mod-subst-dollar:U8:
mod-subst-dollar:$$$$:
mod-subst-dollar:$$$good3
mod-loop-dollar:1:
mod-loop-dollar:${word}$:
mod-loop-dollar:$3$:
mod-loop-dollar:$${word}$$:
mod-loop-dollar:$$5$$:
mod-loop-dollar:$$${word}$$$:
mod-regex-limits:00-ok:1 2323 45456
make: No subexpression \1
make: No subexpression \1
make: No subexpression \1
make: No subexpression \1
mod-regex-limits:11-missing:1 6
mod-regex-limits:11-ok:1 22 446
make: No subexpression \2
make: No subexpression \2
make: No subexpression \2
make: No subexpression \2
mod-regex-limits:22-missing:1 6
make: No subexpression \2
make: No subexpression \2
make: No subexpression \2
make: No subexpression \2
mod-regex-limits:22-missing:1 6
mod-regex-limits:22-ok:1 33 556
mod-regex-limits:capture:ihgfedcbaabcdefghijABCDEFGHIJa0a1a2rest
make: Regex compilation error: (details omitted)
mod-regex-errors:
mod-assign: first=1.
mod-assign: last=3.
mod-assign: appended=1 2 3.
1
2
3
mod-assign: ran:3.
mod-assign: global: 1, 3, 1 2 3, 3.
mod-assign-nested: then1t1
mod-assign-nested: else2e2
mod-assign-nested: then3t3
mod-assign-nested: else4e4
mod-tu-space: A B
mod-quote: new
line
mod-break-many-words: 500
mod-remember: 1 2 3 1 2 3 1 2 3
mod-remember: 1 2 3, SAVED=3
mod-gmtime:
%Y
2020
%Y
%Y
mod-gmtime-indirect:
make: Unknown modifier '1'
mod-localtime:
%Y
2020
%Y
mod-hash:
make: Unknown modifier 'h'
26bb0f5f
12345
make: Unknown modifier 'h'
make: Unknown modifier 'h'
mod-range:
make: Unknown modifier 'r'
1 2 3
make: Unknown modifier 'r'
make: Unknown modifier 'r'
exit status 0