This website requires JavaScript.
Explore
Help
Sign In
d
/
freebsd-dev
Watch
1
Star
0
Fork
0
You've already forked freebsd-dev
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
4aafc6cbf1
freebsd-dev
/
usr.bin
/
alias
/
generic.sh
5 lines
78 B
Bash
Raw
Normal View
History
Unescape
Escape
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.
2002-07-16 21:13:11 +00:00
#!/bin/sh
# $FreeBSD$
# This file is in the public domain.
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.
2002-07-16 22:16:05 +00:00
${
0
##*/
}
${
1
+
"
$@
"
}
Reference in New Issue
Copy Permalink