OILS / _devbuild / help / ysh-ysh-cmd View on Github | oilshell.org

13 lines, 10 significant
1
2 YSH Command Language Keywords <a class="group-link" href="chap-ysh-cmd.html">ysh-cmd</a>
3
4
5 [Assignment] const var Declare variables
6 setvar setvar a[i] = 42
7 setglobal setglobal d.key = 'foo'
8 [Expression] equal = = 1 + 2*3
9 call call mylist->append(42)
10 [Definitions] proc proc p (s, ...rest) {
11 typed proc p (; typed, ...rest; n=0; b)
12 func func f(x; opt1, opt2) { return (x + 1) }
13 ysh-return return (myexpr)