Why Sponsor Oils? | source | all docs for version 0.32.0 | all versions | oils.pub
(in progress)
This page links to topics in the Oils Reference. It's organized differently than the YSH Table of Contents or OSH Table of Contents.
YSH:
OSH:
YSH:
ENVysh-prefix-binding - for NAME=val env bindingssimple-command - external commands are started with an
environshopt --unset no_exportedshopt --set env_objOSH:
exportprefix-binding - for NAME=val env bindingsYSH:
OSH:
YSH:
proc__invoke__, Objsimple-command is how you invoke procsOSH:
useis-main_this_dir__provide__Obj with an __invoke__
methodOSH:
OSH:
completecompexport, compadjustset -x aka set -o xtraceSHX_*OSH Debug Stack:
YSH Debug Stack:
These may be combined with
Other YSH reflection:
Also see the Unicode doc.
Obj
__invoke____call__first() and rest()ENV is an Obj. ysh-attr-> thin-arrowA closure is a way of bundling data and code. The idea originated in Lisp, and is widely used in JavaScript.
YSH behaves much like JavaScript. Exception: YSH has flat function scope,
except for the body of for loops.
shopt --set for_loop_frames, part of option group
ysh:allfunc__call__ and Obj (TODO)ysh-func-callshell-flags for --eval-purefunc/eval and
func/evalExprfunc - functions are pureio and vm - impure
behavior is attached to these objects