summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-03-06 16:57:53 +0000
committerjilles <jilles@FreeBSD.org>2010-03-06 16:57:53 +0000
commit1bfbe947abf36034bc4aa54fb61824fb8153e43f (patch)
treea292cee82566850ab924f6b484d9ac29b205226d /bin/sh/sh.1
parentce168ed4ea9ae18aa7997ba001e291cd5b2d3c8b (diff)
downloadFreeBSD-src-1bfbe947abf36034bc4aa54fb61824fb8153e43f.zip
FreeBSD-src-1bfbe947abf36034bc4aa54fb61824fb8153e43f.tar.gz
sh: Improve the command builtin:
* avoid unnecessary fork * allow executing builtins via command * executing a special builtin via command removes its special properties Obtained from: NetBSD (parts)
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.110
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 8ec1195..4df5212 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -32,7 +32,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
-.Dd December 31, 2009
+.Dd March 6, 2010
.Dt SH 1
.Os
.Sh NAME
@@ -1571,10 +1571,12 @@ built-in command.
.It Ic command Oo Fl p Oc Op Ar utility Op Ar argument ...
.It Ic command Oo Fl v | V Oc Op Ar utility
The first form of invocation executes the specified
+.Ar utility ,
+ignoring shell functions in the search.
+If
.Ar utility
-as a simple command (see the
-.Sx Simple Commands
-section).
+is a special builtin,
+it is executed as if it were a regular builtin.
.Pp
If the
.Fl p
OpenPOWER on IntegriCloud