1 | |
2 | const __provide__ = :| {global,local,default}_expr {global,local,default}_block | |
3 | |
4 | var g = 'global' |
5 | |
6 | var global_expr = ^["$g!"] |
7 | |
8 | func local_expr() { |
9 | var lo = 'local' |
10 | return (^["$[g] $[lo]!"]) |
11 | } |
12 | |
13 | var global_block = ^(echo "$[g]!") |
14 | |
15 | func local_block() { |
16 | var lo = 'local' |
17 | return (^(echo "$[g] $[lo]!")) |
18 | } |
19 | |
20 | func default_expr(x=^"$g expr!") { |
21 | return (x) |
22 | } |
23 | |
24 | func default_block(x=^(echo "$g block!")) { |
25 | return (x) |
26 | } |