|
Lines 31-36
Link Here
|
| 31 |
.Os |
31 |
.Os |
| 32 |
.Sh NAME |
32 |
.Sh NAME |
| 33 |
.Nm builtin , |
33 |
.Nm builtin , |
|
|
34 |
.Nm \&! , |
| 35 |
.Nm \&% , |
| 36 |
.Nm \&. , |
| 37 |
.Nm \&: , |
| 38 |
.Nm \&@ , |
| 39 |
.Nm \&{ , |
| 40 |
.Nm \&} , |
| 34 |
.Nm alias , |
41 |
.Nm alias , |
| 35 |
.Nm alloc , |
42 |
.Nm alloc , |
| 36 |
.Nm bg , |
43 |
.Nm bg , |
|
Lines 80-85
Link Here
|
| 80 |
.Nm jobs , |
87 |
.Nm jobs , |
| 81 |
.Nm kill , |
88 |
.Nm kill , |
| 82 |
.Nm limit , |
89 |
.Nm limit , |
|
|
90 |
.Nm local , |
| 83 |
.Nm log , |
91 |
.Nm log , |
| 84 |
.Nm login , |
92 |
.Nm login , |
| 85 |
.Nm logout , |
93 |
.Nm logout , |
|
Lines 96-101
Link Here
|
| 96 |
.Nm readonly , |
104 |
.Nm readonly , |
| 97 |
.Nm rehash , |
105 |
.Nm rehash , |
| 98 |
.Nm repeat , |
106 |
.Nm repeat , |
|
|
107 |
.Nm return , |
| 99 |
.Nm sched , |
108 |
.Nm sched , |
| 100 |
.Nm set , |
109 |
.Nm set , |
| 101 |
.Nm setenv , |
110 |
.Nm setenv , |
|
Lines 127-133
Link Here
|
| 127 |
.Nm where , |
136 |
.Nm where , |
| 128 |
.Nm which , |
137 |
.Nm which , |
| 129 |
.Nm while |
138 |
.Nm while |
| 130 |
.Nd shell builtin commands |
139 |
.Nd shell built-in commands |
| 131 |
.Sh SYNOPSIS |
140 |
.Sh SYNOPSIS |
| 132 |
.Nm |
141 |
.Nm |
| 133 |
.Op Fl options |
142 |
.Op Fl options |
|
Lines 147-157
Link Here
|
| 147 |
Thus, while specifying |
156 |
Thus, while specifying |
| 148 |
.Dq Ic echo |
157 |
.Dq Ic echo |
| 149 |
causes a builtin command to be executed under shells that support the |
158 |
causes a builtin command to be executed under shells that support the |
| 150 |
builtin echo command, |
159 |
.Nm echo |
|
|
160 |
builtin command, |
| 151 |
specifying |
161 |
specifying |
| 152 |
.Dq Pa /bin/echo |
162 |
.Dq Ic /bin/echo |
| 153 |
or |
163 |
or |
| 154 |
.Dq Pa ./echo |
164 |
.Dq Ic ./echo |
| 155 |
does not. |
165 |
does not. |
| 156 |
.Pp |
166 |
.Pp |
| 157 |
While some builtin commands may exist in more than one shell, their |
167 |
While some builtin commands may exist in more than one shell, their |
|
Lines 164-185
Link Here
|
| 164 |
and |
174 |
and |
| 165 |
.Xr sh 1 |
175 |
.Xr sh 1 |
| 166 |
shells are listed here. |
176 |
shells are listed here. |
|
|
177 |
Consult a shell's manual page for |
| 178 |
details on the operation its builtin commands. |
| 179 |
Beware that the |
| 180 |
.Xr sh 1 |
| 181 |
manual page, at least, calls some of these commands |
| 182 |
.Dq built-in commands |
| 183 |
and some of them |
| 184 |
.Dq reserved words . |
| 185 |
Users of other shells may need to consult an |
| 186 |
.Xr info 1 |
| 187 |
page or other sources of documentation. |
| 188 |
.Pp |
| 167 |
Commands marked |
189 |
Commands marked |
| 168 |
.Dq Li No** |
190 |
.Dq Li No** |
| 169 |
under |
191 |
under |
| 170 |
.Em External |
192 |
.Em External |
| 171 |
do exist externally, |
193 |
do exist externally, |
| 172 |
but are implemented as scripts using a builtin command of the same name. |
194 |
but are implemented as scripts using a builtin command of the same name. |
| 173 |
Consult a shell's manual page for |
|
|
| 174 |
details on the operation its builtin commands. |
| 175 |
Users of other shells may need to consult an |
| 176 |
.Xr info 1 |
| 177 |
page or other sources of documentation. |
| 178 |
.Bl -column ".Ic uncomplete" ".Em External" ".Xr csh 1" ".Xr sh 1" -offset indent |
195 |
.Bl -column ".Ic uncomplete" ".Em External" ".Xr csh 1" ".Xr sh 1" -offset indent |
| 179 |
.It Xo |
196 |
.It Xo |
| 180 |
.Em "Command External" Ta Xr csh 1 Ta Xr sh 1 |
197 |
.Em "Command External" Ta Xr csh 1 Ta Xr sh 1 |
| 181 |
.Xc |
198 |
.Xc |
| 182 |
.It Ic alias Ta Yes Ta Yes Ta Yes |
199 |
.It Ic ! Ta \&No Ta \&No Ta \&Yes |
|
|
200 |
.It Ic % Ta \&No Ta Yes Ta \&No |
| 201 |
.It Ic . Ta \&No Ta \&No Ta Yes |
| 202 |
.It Ic : Ta \&No Ta Yes Ta Yes |
| 203 |
.It Ic @ Ta \&No Ta Yes Ta Yes |
| 204 |
.It Ic { Ta \&No Ta \&No Ta \&Yes |
| 205 |
.It Ic } Ta \&No Ta \&No Ta \&Yes |
| 206 |
.It Ic alias Ta \&No** Ta Yes Ta Yes |
| 183 |
.It Ic alloc Ta \&No Ta Yes Ta \&No |
207 |
.It Ic alloc Ta \&No Ta Yes Ta \&No |
| 184 |
.It Ic bg Ta No** Ta Yes Ta Yes |
208 |
.It Ic bg Ta No** Ta Yes Ta Yes |
| 185 |
.It Ic bind Ta \&No Ta \&No Ta Yes |
209 |
.It Ic bind Ta \&No Ta \&No Ta Yes |
|
Lines 191-197
Link Here
|
| 191 |
.It Ic case Ta \&No Ta Yes Ta Yes |
215 |
.It Ic case Ta \&No Ta Yes Ta Yes |
| 192 |
.It Ic cd Ta \&No** Ta Yes Ta Yes |
216 |
.It Ic cd Ta \&No** Ta Yes Ta Yes |
| 193 |
.It Ic chdir Ta \&No Ta Yes Ta \&Yes |
217 |
.It Ic chdir Ta \&No Ta Yes Ta \&Yes |
| 194 |
.It Ic Ta \&No Ta \&No Ta Yes |
218 |
.It Ic command Ta \&No Ta \&No Ta Yes |
| 195 |
.It Ic complete Ta \&No Ta Yes Ta \&No |
219 |
.It Ic complete Ta \&No Ta Yes Ta \&No |
| 196 |
.It Ic continue Ta \&No Ta Yes Ta \&Yes |
220 |
.It Ic continue Ta \&No Ta Yes Ta \&Yes |
| 197 |
.It Ic default Ta \&No Ta Yes Ta \&No |
221 |
.It Ic default Ta \&No Ta Yes Ta \&No |
|
Lines 229-234
Link Here
|
| 229 |
.It Ic jobs Ta \&No** Ta Yes Ta Yes |
253 |
.It Ic jobs Ta \&No** Ta Yes Ta Yes |
| 230 |
.It Ic kill Ta Yes Ta Yes Ta \&No |
254 |
.It Ic kill Ta Yes Ta Yes Ta \&No |
| 231 |
.It Ic limit Ta \&No Ta Yes Ta \&No |
255 |
.It Ic limit Ta \&No Ta Yes Ta \&No |
|
|
256 |
.It Ic local Ta \&No Ta \&No Ta Yes |
| 232 |
.It Ic log Ta \&No Ta Yes Ta \&No |
257 |
.It Ic log Ta \&No Ta Yes Ta \&No |
| 233 |
.It Ic login Ta Yes Ta Yes Ta \&No |
258 |
.It Ic login Ta Yes Ta Yes Ta \&No |
| 234 |
.It Ic logout Ta \&No Ta Yes Ta \&No |
259 |
.It Ic logout Ta \&No Ta Yes Ta \&No |
|
Lines 245-250
Link Here
|
| 245 |
.It Ic readonly Ta \&No Ta \&No Ta Yes |
270 |
.It Ic readonly Ta \&No Ta \&No Ta Yes |
| 246 |
.It Ic rehash Ta \&No Ta Yes Ta \&No |
271 |
.It Ic rehash Ta \&No Ta Yes Ta \&No |
| 247 |
.It Ic repeat Ta \&No Ta Yes Ta \&No |
272 |
.It Ic repeat Ta \&No Ta Yes Ta \&No |
|
|
273 |
.It Ic return Ta \&No Ta \&No Ta Yes |
| 248 |
.It Ic sched Ta \&No Ta Yes Ta \&No |
274 |
.It Ic sched Ta \&No Ta Yes Ta \&No |
| 249 |
.It Ic set Ta \&No Ta Yes Ta \&Yes |
275 |
.It Ic set Ta \&No Ta Yes Ta \&Yes |
| 250 |
.It Ic setenv Ta \&No Ta Yes Ta \&No |
276 |
.It Ic setenv Ta \&No Ta Yes Ta \&No |