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

29 lines, 26 significant
1
2 Builtin Commands <a class="group-link" href="chap-builtin-cmd.html">builtin-cmd</a>
3
4
5 [Memory] cmd/append Add elements to end of array
6 pp value proc test_
7 asdl_ cell_ X gc-stats_
8 [Handle Errors] error error 'failed' (status=2)
9 try Run with errexit, set _error
10 failed Test if _error.code !== 0
11 boolstatus Enforce 0 or 1 exit status
12 assert assert [42 === f(x)]
13 [Shell State] ysh-cd ysh-shopt compatible, and takes a block
14 shvar Temporary modify global settings
15 ctx Share and update a temporary "context"
16 push-registers Save registers like $?, PIPESTATUS
17 [Modules] runproc Run a proc; use as main entry point
18 source-guard guard against duplicate 'source'
19 is-main false when sourcing a file
20 X use use names,
21 [I/O] ysh-read flags --all, -0
22 ysh-echo no -e -n with simple_echo
23 write Like echo, with --, --sep, --end
24 fork forkwait Replace & and (), and takes a block
25 fopen Open multiple streams, takes a block
26 [Hay Config] hay haynode For DSLs and config files
27 [Completion] compadjust compexport
28 [Data Formats] json read write
29 json8 read write