OILS / _devbuild / help / ysh-builtin-cmd View on Github | oils.pub

34 lines, 33 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 [Word Lookup] invoke Run a command, and control name lookup
16 runproc Run a proc; use as main entry point
17 X extern Run an external command, with an ENV
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 ysh-wait wait --all --verbose
26 write Like echo, with --, --sep, --end
27 fork forkwait Replace & and (), and takes a block
28 fopen Open multiple streams, takes a block
29 [Private] cat rm POSIX-compatible
30 sleep
31 [Hay Config] hay haynode For DSLs and config files
32 [Completion] compadjust compexport
33 [Data Formats] json read write
34 json8 read write