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

41 lines, 38 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 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 X log X die Common functions (polyfill)
26 [Hay Config] hay haynode For DSLs and config files
27 [Completion] compadjust compexport
28 [Data Formats] json read write
29 json8 read write
30X [TSV8] rows pick rows; dplyr filter()
31 cols pick columns ('select' already taken)
32 group-by add a column with a group ID [ext]
33 sort-by sort by columns; dplyr arrange() [ext]
34 summary count, sum, histogram, etc. [ext]
35 [Args Parser] parser Parse command line arguments
36 flag
37 arg
38 rest
39 parseArgs()
40X [Testing] describe Test harness
41 assert takes an expression