summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-07-16 21:13:11 +0000
committerwollman <wollman@FreeBSD.org>2002-07-16 21:13:11 +0000
commit55d0b8395514ae4055e7af8e4e9812637dbcc463 (patch)
tree762dc7e55dafaf0dbce95db9084233f2f7e78ab5
parent199f131d07cdddef380c857af8b4c23ded0b596e (diff)
downloadFreeBSD-src-55d0b8395514ae4055e7af8e4e9812637dbcc463.zip
FreeBSD-src-55d0b8395514ae4055e7af8e4e9812637dbcc463.tar.gz
POSIX requires these shell builtins to also exist as totally pointless
external commands. Since they serve no useful purpose, it's OK that their implementation is not the most efficient possible.
-rw-r--r--usr.bin/Makefile2
-rw-r--r--usr.bin/cd/Makefile6
-rw-r--r--usr.bin/cd/cd.sh4
-rw-r--r--usr.bin/command/Makefile6
-rw-r--r--usr.bin/command/command.sh4
5 files changed, 22 insertions, 0 deletions
diff --git a/usr.bin/Makefile b/usr.bin/Makefile
index 6c492e6..d23ea17 100644
--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -20,6 +20,7 @@ SUBDIR= apply \
calendar \
cap_mkdb \
catman \
+ cd \
chat \
checknr \
chflags \
@@ -32,6 +33,7 @@ SUBDIR= apply \
colrm \
column \
comm \
+ command \
compile_et \
compress \
csplit \
diff --git a/usr.bin/cd/Makefile b/usr.bin/cd/Makefile
new file mode 100644
index 0000000..5388f5e
--- /dev/null
+++ b/usr.bin/cd/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+SCRIPTS=cd.sh
+NOMAN=
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/cd/cd.sh b/usr.bin/cd/cd.sh
new file mode 100644
index 0000000..2330f56
--- /dev/null
+++ b/usr.bin/cd/cd.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $FreeBSD$
+# This file is in the public domain.
+cd ${1+"$@"}
diff --git a/usr.bin/command/Makefile b/usr.bin/command/Makefile
new file mode 100644
index 0000000..5388f5e
--- /dev/null
+++ b/usr.bin/command/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+SCRIPTS=cd.sh
+NOMAN=
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/command/command.sh b/usr.bin/command/command.sh
new file mode 100644
index 0000000..74d585b
--- /dev/null
+++ b/usr.bin/command/command.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $FreeBSD$
+# This file is in the public domain.
+command ${1+"$@"}
OpenPOWER on IntegriCloud