|
Lines 355-362
Link Here
|
| 355 |
.El |
355 |
.El |
| 356 |
.Ss Quoting |
356 |
.Ss Quoting |
| 357 |
Quoting is used to remove the special meaning of certain characters |
357 |
Quoting is used to remove the special meaning of certain characters |
| 358 |
or words to the shell, such as operators, whitespace, or |
358 |
or words to the shell, such as operators, whitespace, keywords, |
| 359 |
keywords. |
359 |
or alias names. |
|
|
360 |
.Pp |
| 360 |
There are three types of quoting: matched single quotes, |
361 |
There are three types of quoting: matched single quotes, |
| 361 |
matched double quotes, and backslash. |
362 |
matched double quotes, and backslash. |
| 362 |
.Bl -tag -width indent |
363 |
.Bl -tag -width indent |
|
Lines 422-427
Link Here
|
| 422 |
They can also be |
423 |
They can also be |
| 423 |
used to create lexically obscure code. |
424 |
used to create lexically obscure code. |
| 424 |
This use is discouraged. |
425 |
This use is discouraged. |
|
|
426 |
.Pp |
| 427 |
An alias name may be escaped in a command line, so that it is not |
| 428 |
replaced by its alias value, by using quoting characters within or |
| 429 |
adjacent to the alias name. This is most often done by prefixing |
| 430 |
an alias name with a backslash to execute a function, built-in, or |
| 431 |
normal program with the same name. |
| 432 |
See the |
| 433 |
.Sx Quoting |
| 434 |
subsection. |
| 425 |
.Ss Commands |
435 |
.Ss Commands |
| 426 |
The shell interprets the words it reads according to a |
436 |
The shell interprets the words it reads according to a |
| 427 |
language, the specification of which is outside the scope |
437 |
language, the specification of which is outside the scope |
|
Lines 1352-1359
Link Here
|
| 1352 |
If it is not found in the |
1362 |
If it is not found in the |
| 1353 |
.Ev PATH , |
1363 |
.Ev PATH , |
| 1354 |
it is sought in the current working directory. |
1364 |
it is sought in the current working directory. |
| 1355 |
.It Ic alias Op Ar name ... |
1365 |
.It Ic alias Oo Ar name Ns Oo = Ns Ar string Oc ... Oc |
| 1356 |
.It Ic alias Op Ar name Ns = Ns Ar string ... |
|
|
| 1357 |
If |
1366 |
If |
| 1358 |
.Ar name Ns = Ns Ar string |
1367 |
.Ar name Ns = Ns Ar string |
| 1359 |
is specified, the shell defines the alias |
1368 |
is specified, the shell defines the alias |
|
Lines 1372-1377
Link Here
|
| 1372 |
.Ic unalias ) . |
1381 |
.Ic unalias ) . |
| 1373 |
Alias values are written with appropriate quoting so that they are |
1382 |
Alias values are written with appropriate quoting so that they are |
| 1374 |
suitable for re-input to the shell. |
1383 |
suitable for re-input to the shell. |
|
|
1384 |
Also see the |
| 1385 |
.Sx Aliases |
| 1386 |
subsection. |
| 1375 |
.It Ic bg Op Ar job ... |
1387 |
.It Ic bg Op Ar job ... |
| 1376 |
Continue the specified jobs |
1388 |
Continue the specified jobs |
| 1377 |
(or the current job if no jobs are given) |
1389 |
(or the current job if no jobs are given) |