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 asdl cell X gc-stats line proc
|
7 | [Handle Errors] error error 'failed' (status=2)
|
8 | try Run with errexit, set _error
|
9 | failed Test if _error.code !== 0
|
10 | boolstatus Enforce 0 or 1 exit status
|
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 | [Modules] runproc Run a proc; use as main entry point
|
16 | module guard against duplicate 'source'
|
17 | is-main false when sourcing a file
|
18 | use change first word lookup
|
19 | [I/O] ysh-read flags --all, -0
|
20 | ysh-echo no -e -n with simple_echo
|
21 | write Like echo, with --, --sep, --end
|
22 | fork forkwait Replace & and (), and takes a block
|
23 | fopen Open multiple streams, takes a block
|
24 | X dbg Only thing that can be used in funcs
|
25 | [Hay Config] hay haynode For DSLs and config files
|
26 | [Completion] compadjust compexport
|
27 | [Data Formats] json read write
|
28 | json8 read write
|
29 | X [Testing] assert takes an expression
|