This website requires JavaScript.
Explore
Help
Sign In
mirror
/
freebsd
Watch
1
Star
0
Fork
0
You've already forked freebsd
mirror of
https://git.FreeBSD.org/src.git
synced
2024-12-27 11:55:06 +00:00
Code
Issues
Releases
Activity
2e6c2a1089
freebsd
/
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