Make it easier to find that we have test(1) built-in in sh(1).

MFC after:	3 days
This commit is contained in:
Yaroslav Tykhiy 2006-07-26 06:48:18 +00:00
parent d95eaaf3ed
commit 108459221f

View File

@ -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 June 21, 2006 .Dd July 26, 2006
.Dt SH 1 .Dt SH 1
.Os .Os
.Sh NAME .Sh NAME
@ -1361,9 +1361,8 @@ This section lists the commands which
are built-in because they need to perform some operation are built-in because they need to perform some operation
that cannot be performed by a separate process. that cannot be performed by a separate process.
In addition to In addition to
these, a built-in version of the these, built-in versions of essential utilities
.Xr test 1 are provided for efficiency.
command is 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.
@ -1385,6 +1384,9 @@ for the file.
If it is not found in the If it is not found in the
.Ev PATH , .Ev PATH ,
it is sought in the current working directory. it is sought in the current working directory.
.It Ic \&[
A built-in equivalent of
.Xr test 1 .
.It Ic alias Oo Ar name Ns Oo = Ns Ar string Oc ... Oc .It Ic alias Oo Ar name Ns Oo = Ns Ar string Oc ... Oc
If If
.Ar name Ns = Ns Ar string .Ar name Ns = Ns Ar string
@ -1961,6 +1963,9 @@ A shift sets the value of $1 to the value of $2,
the value of $2 to the value of $3, and so on, the value of $2 to the value of $3, and so on,
decreasing the value of $# by one. decreasing the value of $# by one.
If there are zero positional parameters, shifting does not do anything. If there are zero positional parameters, shifting does not do anything.
.It Ic test
A built-in equivalent of
.Xr test 1 .
.It Ic times .It Ic times
Print the amount of time spent executing the shell and its children. Print the amount of time spent executing the shell and its children.
The first output line shows the user and system times for the shell The first output line shows the user and system times for the shell