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

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