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 | assert assert [42 === f(x)] |
12 | [Shell State] ysh-cd ysh-shopt compatible, and takes a block |
13 | shvar Temporary modify global settings |
14 | ctx Share and update a temporary "context" |
15 | push-registers Save registers like $?, PIPESTATUS |
16 | [Modules] runproc Run a proc; use as main entry point |
17 | module guard against duplicate 'source' |
18 | is-main false when sourcing a file |
19 | use change first word lookup |
20 | [I/O] ysh-read flags --all, -0 |
21 | ysh-echo no -e -n with simple_echo |
22 | write Like echo, with --, --sep, --end |
23 | fork forkwait Replace & and (), and takes a block |
24 | fopen Open multiple streams, takes a block |
25 | X dbg Only thing that can be used in funcs |
26 | [Hay Config] hay haynode For DSLs and config files |
27 | [Completion] compadjust compexport |
28 | [Data Formats] json read write |
29 | json8 read write |