diff options
author | wollman <wollman@FreeBSD.org> | 2002-07-16 22:16:05 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2002-07-16 22:16:05 +0000 |
commit | b5e36ca81380b2e4d30599db84eb0baf81cefba1 (patch) | |
tree | 9cc07624d64893a546207657e471464e0a26908c /usr.bin | |
parent | 2183121c4b5216debf88b82ce5335016fc4cd183 (diff) | |
download | FreeBSD-src-b5e36ca81380b2e4d30599db84eb0baf81cefba1.zip FreeBSD-src-b5e36ca81380b2e4d30599db84eb0baf81cefba1.tar.gz |
A little bit more thought has resulted in a generic script which can
implement any of the useless POSIX-required ``regular shell builtin''
utilities, saving one frag and one inode each. The script moves to
usr.bin/alias which is alphabetically the first of these commands.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/Makefile | 5 | ||||
-rw-r--r-- | usr.bin/alias/Makefile | 19 | ||||
-rw-r--r-- | usr.bin/alias/generic.sh (renamed from usr.bin/cd/cd.sh) | 2 | ||||
-rw-r--r-- | usr.bin/cd/Makefile | 6 | ||||
-rw-r--r-- | usr.bin/command/Makefile | 6 | ||||
-rw-r--r-- | usr.bin/command/command.sh | 4 |
6 files changed, 22 insertions, 20 deletions
diff --git a/usr.bin/Makefile b/usr.bin/Makefile index d23ea17..87f6297 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -7,7 +7,8 @@ # XXX Use GNU versions: apropos bc dc diff grep ld man patch whatis # Moved to secure: bdes # -SUBDIR= apply \ +SUBDIR= alias \ + apply \ asa \ at \ awk \ @@ -20,7 +21,6 @@ SUBDIR= apply \ calendar \ cap_mkdb \ catman \ - cd \ chat \ checknr \ chflags \ @@ -33,7 +33,6 @@ SUBDIR= apply \ colrm \ column \ comm \ - command \ compile_et \ compress \ csplit \ diff --git a/usr.bin/alias/Makefile b/usr.bin/alias/Makefile new file mode 100644 index 0000000..c4f8748 --- /dev/null +++ b/usr.bin/alias/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +SCRIPTS=generic.sh +SCRIPTSNAME=cd +NOMAN= + +LINKS= ${BINDIR}/alias ${BINDIR}/bg \ + ${BINDIR}/alias ${BINDIR}/cd \ + ${BINDIR}/alias ${BINDIR}/command \ + ${BINDIR}/alias ${BINDIR}/fc \ + ${BINDIR}/alias ${BINDIR}/fg \ + ${BINDIR}/alias ${BINDIR}/getopts \ + ${BINDIR}/alias ${BINDIR}/jobs \ + ${BINDIR}/alias ${BINDIR}/read \ + ${BINDIR}/alias ${BINDIR}/umask \ + ${BINDIR}/alias ${BINDIR}/unalias \ + ${BINDIR}/alias ${BINDIR}/wait + +.include <bsd.prog.mk> diff --git a/usr.bin/cd/cd.sh b/usr.bin/alias/generic.sh index 2330f56..33a39ad 100644 --- a/usr.bin/cd/cd.sh +++ b/usr.bin/alias/generic.sh @@ -1,4 +1,4 @@ #!/bin/sh # $FreeBSD$ # This file is in the public domain. -cd ${1+"$@"} +${0##*/} ${1+"$@"} diff --git a/usr.bin/cd/Makefile b/usr.bin/cd/Makefile deleted file mode 100644 index 5388f5e..0000000 --- a/usr.bin/cd/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $FreeBSD$ - -SCRIPTS=cd.sh -NOMAN= - -.include <bsd.prog.mk> diff --git a/usr.bin/command/Makefile b/usr.bin/command/Makefile deleted file mode 100644 index e27201f..0000000 --- a/usr.bin/command/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $FreeBSD$ - -SCRIPTS=command.sh -NOMAN= - -.include <bsd.prog.mk> diff --git a/usr.bin/command/command.sh b/usr.bin/command/command.sh deleted file mode 100644 index 74d585b..0000000 --- a/usr.bin/command/command.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# $FreeBSD$ -# This file is in the public domain. -command ${1+"$@"} |