diff options
author | knu <knu@FreeBSD.org> | 2001-11-17 19:10:11 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-11-17 19:10:11 +0000 |
commit | b58a3e40782ae0e677cf9298f2c46d94b75d464b (patch) | |
tree | 012bf9627bbece65cbf708b3fac1e45edf9656dc /bin/sh/sh.1 | |
parent | 271e61648420b256374ae031ae2d70a0c59672ba (diff) | |
download | FreeBSD-src-b58a3e40782ae0e677cf9298f2c46d94b75d464b.zip FreeBSD-src-b58a3e40782ae0e677cf9298f2c46d94b75d464b.tar.gz |
Make test(1) a builtin command of our sh(1) for efficiency. The
binary size increase is 3,784 bytes (about 0.6%).
I don't drop the printf builtin while I'm here because some /etc/rc.*
scripts seem to use it before mounting /usr where printf(1) resides.
Reviewed by: arch (sheldonh)
Inspired by: NetBSD, ksh
Clued by: ume (on how the printf builtin is used)
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r-- | bin/sh/sh.1 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 2a11e4d..fe2f3e3 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -1273,9 +1273,12 @@ make it the first or last character listed. This section lists the commands which are builtin because they need to perform some operation that cannot be performed by a separate process. In addition to -these, a builtin version of the +these, builtin versions of the .Xr printf 1 -command is provided for efficiency. +command and +the +.Xr test 1 +command are provided for efficiency. .Bl -tag -width Ds .It Ic \&: A null command that returns a 0 (true) exit value. |