OILS / spec / ysh-bin.test.sh View on Github | oilshell.org

20 lines, 7 significant
1# Smoke test for the bin/ysh binary
2
3## our_shell: ysh
4
5#### Array func
6write @[split('foo bar')]
7## STDOUT:
8foo
9bar
10## END
11
12
13#### Options can be overridden
14$[ENV.SH] -c 'shopt | grep parse_paren'
15$[ENV.SH] +O parse_paren -c 'shopt | grep parse_paren'
16
17## STDOUT:
18shopt -s parse_paren
19shopt -u parse_paren
20## END