summaryrefslogtreecommitdiffstats
path: root/usr.bin/alias
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-07-16 22:16:05 +0000
committerwollman <wollman@FreeBSD.org>2002-07-16 22:16:05 +0000
commitb5e36ca81380b2e4d30599db84eb0baf81cefba1 (patch)
tree9cc07624d64893a546207657e471464e0a26908c /usr.bin/alias
parent2183121c4b5216debf88b82ce5335016fc4cd183 (diff)
downloadFreeBSD-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/alias')
-rw-r--r--usr.bin/alias/Makefile19
-rw-r--r--usr.bin/alias/generic.sh4
2 files changed, 23 insertions, 0 deletions
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/alias/generic.sh b/usr.bin/alias/generic.sh
new file mode 100644
index 0000000..33a39ad
--- /dev/null
+++ b/usr.bin/alias/generic.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $FreeBSD$
+# This file is in the public domain.
+${0##*/} ${1+"$@"}
OpenPOWER on IntegriCloud