1 # Smoke test for the bin/oil binary
2
3 #### Array func
4 func a(x) { return @(1 2 $x) }
5 write @a(42)
6 ## STDOUT:
7 1
8 2
9 42
10 ## END
11
12
13 #### Options can be overridden
14 $SH -c 'shopt | grep parse_paren'
15 $SH +O parse_paren -c 'shopt | grep parse_paren'
16 ## STDOUT:
17 shopt -s parse_paren
18 shopt -u parse_paren
19 ## END