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

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