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

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