|
6 | 6 | > (tools/gen_builtins_md.py), never edit it by hand. The help |
7 | 7 | > table itself is test-enforced against the dispatch table, so |
8 | 8 | > neither this page nor `help` can drift from what actually |
9 | | -> runs. 69 builtins; anything else on `$PATH` works as usual — |
| 9 | +> runs. 72 builtins; anything else on `$PATH` works as usual — |
10 | 10 | > `type NAME` says which is which. |
11 | 11 |
|
12 | 12 | ## navigation |
|
31 | 31 | **`echo`** — `echo [-neE] [arg ...]` |
32 | 32 | <br>write arguments (-n no newline, -e escapes) |
33 | 33 |
|
34 | | -**`mapfile`** — `mapfile [-t] [-n n] [-O i] [-s n] [-u fd] [array]` |
| 34 | +**`mapfile`** — `mapfile [-d delim] [-n n] [-O idx] [-s n] [-t] [-u fd] [array]` |
35 | 35 | <br>read lines of input into an array |
36 | 36 |
|
37 | 37 | **`printf`** — `printf [-v var] format [arg ...]` |
38 | 38 | <br>format and print, like printf(3) |
39 | 39 |
|
40 | | -**`read`** — `read [-r] [-p prompt] [-n n] [-t sec] [name ...]` |
| 40 | +**`read`** — `read [-r] [-a arr] [-d delim] [-n n] [-N n] [-p str] [-t s] [name ...]` |
41 | 41 | <br>read one line into variables |
42 | 42 |
|
43 | | -**`readarray`** — `readarray [-t] [-n n] [-O i] [-s n] [array]` |
| 43 | +**`readarray`** — `readarray [-d delim] [-n n] [-O idx] [-s n] [-t] [-u fd] [array]` |
44 | 44 | <br>same as mapfile |
45 | 45 |
|
46 | 46 | **`umask`** — `umask [-S] [-p] [mode]` |
|
108 | 108 | **`alias`** — `alias [-p] [name[=value] ...]` |
109 | 109 | <br>define or list command aliases |
110 | 110 |
|
| 111 | +**`builtin`** — `builtin [name [args ...]]` |
| 112 | +<br>run a shell builtin, bypassing function lookup |
| 113 | + |
111 | 114 | **`command`** — `command [-pVv] name [arg ...]` |
112 | 115 | <br>run a command, ignoring functions and aliases |
113 | 116 |
|
|
159 | 162 | **`complete`** — `complete [-abcdfkv] [-A action] [-W list] [-F fn] [-pr] name ...` |
160 | 163 | <br>register what to offer when completing an argument of name |
161 | 164 |
|
| 165 | +**`compopt`** — `compopt [-o|+o option] [-DEI] [name ...]` |
| 166 | +<br>change a completion spec's options, or the running one's |
| 167 | + |
162 | 168 | **`eval`** — `eval [arg ...]` |
163 | 169 | <br>join the arguments and run them as a command |
164 | 170 |
|
@@ -202,6 +208,9 @@ Not builtins — the grammar `help` also explains, kept here for the same one-st |
202 | 208 | **`for`** — `for NAME [in WORD ...]; do LIST; done` |
203 | 209 | <br>loop over words |
204 | 210 |
|
| 211 | +**`select`** — `select NAME [in WORD ...]; do LIST; done` |
| 212 | +<br>menu loop: number the words on stderr, read a choice into NAME |
| 213 | + |
205 | 214 | **`for((`** — `for ((exp1; exp2; exp3)); do LIST; done` |
206 | 215 | <br>C-style counting loop |
207 | 216 |
|
@@ -257,6 +266,9 @@ Only reachable when the dialect is armed (`set -o zsh`, `emulate zsh`, or sourci |
257 | 266 | **`emulate`** — `emulate [-L] {zsh|sh|ksh|bash}` |
258 | 267 | <br>switch dialect; in a function it reverts on return |
259 | 268 |
|
| 269 | +**`is-at-least`** — `is-at-least need [have]` |
| 270 | +<br>0 when version have (default $ZSH_VERSION) is need or newer |
| 271 | + |
260 | 272 | **`print`** — `print [-nrlP] [--] [arg ...]` |
261 | 273 | <br>zsh's echo: escapes on by default, -r turns them off |
262 | 274 |
|
|
0 commit comments