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

40 lines, 37 significant
1
2 Builtin Commands <a class="group-link" href="chap-builtin-cmd">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] try Run with errexit, set _status _error
8 boolstatus Enforce 0 or 1 exit status
9 error error 'failed' (status=2)
10 [Shell State] ysh-cd ysh-shopt compatible, and takes a block
11 shvar Temporary modify global settings
12 ctx Share and update a temporary "context"
13 push-registers Save registers like $?, PIPESTATUS
14 [Modules] runproc Run a proc; use as main entry point
15 module guard against duplicate 'source'
16 is-main false when sourcing a file
17 use change first word lookup
18 [I/O] ysh-read flags --all, -0
19 ysh-echo no -e -n with simple_echo
20 write Like echo, with --, --sep, --end
21 fork forkwait Replace & and (), and takes a block
22 fopen Open multiple streams, takes a block
23 X dbg Only thing that can be used in funcs
24 X log X die Common functions (polyfill)
25 [Hay Config] hay haynode For DSLs and config files
26 [Completion] compadjust compexport
27 [Data Formats] json read write
28 json8 read write
29X [TSV8] rows pick rows; dplyr filter()
30 cols pick columns ('select' already taken)
31 group-by add a column with a group ID [ext]
32 sort-by sort by columns; dplyr arrange() [ext]
33 summary count, sum, histogram, etc. [ext]
34 [Args Parser] parser Parse command line arguments
35 flag
36 arg
37 rest
38 parseArgs()
39X [Testing] describe Test harness
40 assert takes an expression