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.
This commit is contained in:
Garrett Wollman 2002-07-16 21:13:11 +00:00
parent 020d4fa6de
commit b107f944ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100198
5 changed files with 22 additions and 0 deletions

View File

@ -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 \

6
usr.bin/cd/Makefile Normal file
View File

@ -0,0 +1,6 @@
# $FreeBSD$
SCRIPTS=cd.sh
NOMAN=
.include <bsd.prog.mk>

4
usr.bin/cd/cd.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# $FreeBSD$
# This file is in the public domain.
cd ${1+"$@"}

6
usr.bin/command/Makefile Normal file
View File

@ -0,0 +1,6 @@
# $FreeBSD$
SCRIPTS=cd.sh
NOMAN=
.include <bsd.prog.mk>

View File

@ -0,0 +1,4 @@
#!/bin/sh
# $FreeBSD$
# This file is in the public domain.
command ${1+"$@"}