aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/alias
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2005-10-24 22:32:19 +0000
committerColin Percival <cperciva@FreeBSD.org>2005-10-24 22:32:19 +0000
commit923e7a09b08f357a691324bc700da560ff469573 (patch)
treec7ffb3fb4d045006ac701ff635e07f61e30e6e6a /usr.bin/alias
parent58553b9925e1d586b8df59e967141d634f505d34 (diff)
downloadsrc-923e7a09b08f357a691324bc700da560ff469573.tar.gz
src-923e7a09b08f357a691324bc700da560ff469573.zip
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
Notes
Notes: svn path=/head/; revision=151635
Diffstat (limited to 'usr.bin/alias')
-rw-r--r--usr.bin/alias/generic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/alias/generic.sh b/usr.bin/alias/generic.sh
index 33a39ad97831..d9c3127e43d6 100644
--- a/usr.bin/alias/generic.sh
+++ b/usr.bin/alias/generic.sh
@@ -1,4 +1,4 @@
#!/bin/sh
# $FreeBSD$
# This file is in the public domain.
-${0##*/} ${1+"$@"}
+builtin ${0##*/} ${1+"$@"}