Home | History | Annotate | Line # | Download | only in unit-tests
modmisc.exp revision 1.40
      1 make: Unknown modifier '$'
      2 path=':/bin:/tmp::/:.:/no/such/dir:.'
      3 path='/bin:/tmp:/:/no/such/dir'
      4 path='/bin:/tmp:/:/no/such/dir'
      5 path='/bin':'/tmp':'/':'/no/such/dir'
      6 path='/bin':'/tmp':'/':'/no/such/dir'
      7 path_/usr/xbin=/opt/xbin/
      8 paths=/bin /tmp / /no/such/dir /opt/xbin
      9 PATHS=/BIN /TMP / /NO/SUCH/DIR /OPT/XBIN
     10 The answer is 42
     11 dirname of 'a/b/c def a.b.c a.b/c a a.a .gitignore a a.a' is 'a/b . . a.b . . . . .'
     12 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'
     13 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'
     14 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'
     15 S:
     16 C:
     17 @:
     18 S:empty
     19 C:empty
     20 @:
     21 mod-subst:
     22 :a b b c:
     23 :a b b c:
     24 : b c:
     25 :a c:
     26 :x__ 3 x__ 3:
     27 12345
     28 mod-subst-chain:
     29 A B c.
     30 make: Unknown modifier 'i'
     31 .
     32 mod-regex:
     33 :a b b c:
     34 :a b b c:
     35 : b c:
     36 make: Regex compilation error: (details omitted)
     37 :C,word,____,:Q}:
     38 :a c:
     39 :x__ 3 x__ 3:
     40 :+one+ +two+ +three+:
     41 :x1y x2y x3y:
     42 :x1y x2y x3y:
     43 :mod-loop-varname: :x1y x2y x3y: ::
     44 :x1y x2y x3y:
     45 mod-loop-resolve:w1d2d3w w2i3w w1i2d3 2i${RES3}w w1d2d3 2i${RES3} 1i${RES2}w:
     46 mod-loop-varname-dollar:(1) (2) (3).
     47 mod-loop-varname-dollar:() () ().
     48 mod-loop-varname-dollar:() () ().
     49 mod-subst-dollar:$1:
     50 mod-subst-dollar:$2:
     51 mod-subst-dollar:$3:
     52 mod-subst-dollar:$4:
     53 mod-subst-dollar:$5:
     54 mod-subst-dollar:$6:
     55 mod-subst-dollar:$7:
     56 mod-subst-dollar:$8:
     57 mod-subst-dollar:$40:
     58 mod-subst-dollar:U8:
     59 mod-subst-dollar:$$$$:
     60 mod-subst-dollar:$$$good3
     61 mod-loop-dollar:1:
     62 mod-loop-dollar:${word}$:
     63 mod-loop-dollar:$3$:
     64 mod-loop-dollar:$${word}$$:
     65 mod-loop-dollar:$$5$$:
     66 mod-loop-dollar:$$${word}$$$:
     67 mod-regex-limits:00-ok:1 2323 45456
     68 make: No subexpression \1
     69 make: No subexpression \1
     70 make: No subexpression \1
     71 make: No subexpression \1
     72 mod-regex-limits:11-missing:1 6
     73 mod-regex-limits:11-ok:1 22 446
     74 make: No subexpression \2
     75 make: No subexpression \2
     76 make: No subexpression \2
     77 make: No subexpression \2
     78 mod-regex-limits:22-missing:1 6
     79 make: No subexpression \2
     80 make: No subexpression \2
     81 make: No subexpression \2
     82 make: No subexpression \2
     83 mod-regex-limits:22-missing:1 6
     84 mod-regex-limits:22-ok:1 33 556
     85 mod-regex-limits:capture:ihgfedcbaabcdefghijABCDEFGHIJa0a1a2rest
     86 make: Regex compilation error: (details omitted)
     87 mod-regex-errors:
     88 mod-assign: first=1.
     89 mod-assign: last=3.
     90 mod-assign: appended=1 2 3.
     91 1
     92 2
     93 3
     94 mod-assign: ran:3.
     95 mod-assign: global: 1, 3, 1 2 3, 3.
     96 mod-assign-nested: then1t1
     97 mod-assign-nested: else2e2
     98 mod-assign-nested: then3t3
     99 mod-assign-nested: else4e4
    100 mod-tu-space: A   B
    101 mod-quote: new
    102 
    103 line
    104 mod-break-many-words: 500
    105 mod-remember: 1 2 3 1 2 3 1 2 3
    106 mod-remember: 1 2 3, SAVED=3
    107 mod-gmtime:
    108 %Y
    109 2020
    110 %Y
    111 %Y
    112 mod-gmtime-indirect:
    113 make: Unknown modifier '1'
    114 
    115 mod-localtime:
    116 %Y
    117 2020
    118 %Y
    119 mod-hash:
    120 make: Unknown modifier 'h'
    121 
    122 26bb0f5f
    123 12345
    124 make: Unknown modifier 'h'
    125 
    126 make: Unknown modifier 'h'
    127 
    128 mod-range:
    129 make: Unknown modifier 'r'
    130 
    131 1 2 3
    132 make: Unknown modifier 'r'
    133 
    134 make: Unknown modifier 'r'
    135 
    136 exit status 0
    137