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
e220ce08ef
freebsd-dev
/
usr.bin
/
alias
/
generic.sh
5 lines
86 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.
Use the "builtin" shell function to make sure that the requested command is handled as a shell function. This avoids the following peculiar behaviour when /usr/bin is on a case-insensitive filesystem: # READ foo (... long pause, depending upon the amount of swap space available ...) sh: Resource temporarily unavailable. Reported by: I can't remember; someone on IRC. MFC after: 1 week
2005-10-24 22:32:19 +00:00
builtin
${
0
##*/
}
${
1
+
"
$@
"
}
Reference in New Issue
Copy Permalink