Resurrect standalone command

While command(1) is now classified by POSIX as an intrinsic utility and
no longer required to exist as a standalone program, it turns out that
we still have a use for it (cf. env(1)), so resurrect it.

PR:		291879
Fixes:		4100bd6caa ("usr.bin: Remove intrinsic utilities")
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D54341
This commit is contained in:
Dag-Erling Smørgrav 2025-12-23 11:36:39 +01:00
parent ae12432049
commit 745c6c0431
4 changed files with 7 additions and 1 deletions

View file

@ -55,7 +55,6 @@
OLD_FILES+=usr/bin/alias
OLD_FILES+=usr/bin/bg
OLD_FILES+=usr/bin/cd
OLD_FILES+=usr/bin/command
OLD_FILES+=usr/bin/fc
OLD_FILES+=usr/bin/fg
OLD_FILES+=usr/bin/getopts

View file

@ -23,6 +23,7 @@ SUBDIR= apply \
colrm \
column \
comm \
command \
compress \
csplit \
ctlstat \

4
usr.bin/command/Makefile Normal file
View file

@ -0,0 +1,4 @@
SCRIPTS=command.sh
MAN=
.include <bsd.prog.mk>

2
usr.bin/command/command.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
builtin command "$@"