sh(1): Clean up documentation of built-in commands.
Make sure all built-in commands are in the subsection named such, except exp, let and wordexp which are deliberately undocumented. The text said only built-ins that really need to be a built-in were documented there but in fact almost all of them were already documented.
This commit is contained in:
parent
c1ecc6cd22
commit
25f6b31fac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216168
25
bin/sh/sh.1
25
bin/sh/sh.1
@ -32,7 +32,7 @@
|
|||||||
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
|
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd December 1, 2010
|
.Dd December 3, 2010
|
||||||
.Dt SH 1
|
.Dt SH 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -1593,12 +1593,7 @@ To include a
|
|||||||
.Ql - ,
|
.Ql - ,
|
||||||
make it the first or last character listed.
|
make it the first or last character listed.
|
||||||
.Ss Built-in Commands
|
.Ss Built-in Commands
|
||||||
This section lists the commands which
|
This section lists the built-in commands.
|
||||||
are built-in because they need to perform some operation
|
|
||||||
that cannot be performed by a separate process.
|
|
||||||
In addition to
|
|
||||||
these, built-in versions of essential utilities
|
|
||||||
are provided for efficiency.
|
|
||||||
.Bl -tag -width indent
|
.Bl -tag -width indent
|
||||||
.It Ic \&:
|
.It Ic \&:
|
||||||
A null command that returns a 0 (true) exit value.
|
A null command that returns a 0 (true) exit value.
|
||||||
@ -1649,15 +1644,19 @@ subsection.
|
|||||||
Continue the specified jobs
|
Continue the specified jobs
|
||||||
(or the current job if no jobs are given)
|
(or the current job if no jobs are given)
|
||||||
in the background.
|
in the background.
|
||||||
|
.It Ic bind Oo Fl aeklrsv Oc Oo Ar key Oo Ar command Oc Oc
|
||||||
|
List or alter key bindings for the line editor.
|
||||||
|
This command is documented in
|
||||||
|
.Xr editrc 5 .
|
||||||
|
.It Ic break Op Ar num
|
||||||
|
See the
|
||||||
|
.Sx Flow-Control Constructs
|
||||||
|
subsection.
|
||||||
.It Ic builtin Ar cmd Op Ar arg ...
|
.It Ic builtin Ar cmd Op Ar arg ...
|
||||||
Execute the specified built-in command,
|
Execute the specified built-in command,
|
||||||
.Ar cmd .
|
.Ar cmd .
|
||||||
This is useful when the user wishes to override a shell function
|
This is useful when the user wishes to override a shell function
|
||||||
with the same name as a built-in command.
|
with the same name as a built-in command.
|
||||||
.It Ic bind Oo Fl aeklrsv Oc Oo Ar key Oo Ar command Oc Oc
|
|
||||||
List or alter key bindings for the line editor.
|
|
||||||
This command is documented in
|
|
||||||
.Xr editrc 5 .
|
|
||||||
.It Ic cd Oo Fl L | P Oc Op Ar directory
|
.It Ic cd Oo Fl L | P Oc Op Ar directory
|
||||||
Switch to the specified
|
Switch to the specified
|
||||||
.Ar directory ,
|
.Ar directory ,
|
||||||
@ -1759,6 +1758,10 @@ a shell keyword
|
|||||||
or
|
or
|
||||||
an alias for
|
an alias for
|
||||||
.Ar value .
|
.Ar value .
|
||||||
|
.It Ic continue Op Ar num
|
||||||
|
See the
|
||||||
|
.Sx Flow-Control Constructs
|
||||||
|
subsection.
|
||||||
.It Ic echo Oo Fl e | n Oc Op Ar string ...
|
.It Ic echo Oo Fl e | n Oc Op Ar string ...
|
||||||
Print a space-separated list of the arguments to the standard output
|
Print a space-separated list of the arguments to the standard output
|
||||||
and append a newline character.
|
and append a newline character.
|
||||||
|
Loading…
Reference in New Issue
Block a user