aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar npilon <npilon@gmail.com>2006-03-13 11:44:58 +1000
committerGravatar npilon <npilon@gmail.com>2006-03-13 11:44:58 +1000
commitde50539c026391bb7da789fc0d2c2fd38edb336f (patch)
treeb768376d1d99d24c36f749ae1419452c0c80ca17
parent04cf08b93bd5365f824c7451b38885d371b650eb (diff)
gettext detection fix
The current method of gettext detection is broken on (at least) OS X and Solaris, where which always returns successfully. This method seems to work on Linux, OS X, and Solaris. darcs-hash:20060313014458-c90d9-8b169581a8632b6a47c61310ef3c976abd67d8e0.gz
-rw-r--r--share/functions/_.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/_.fish b/share/functions/_.fish
index 33fdd43e..a1404761 100644
--- a/share/functions/_.fish
+++ b/share/functions/_.fish
@@ -3,7 +3,7 @@
# Alias for gettext (or a fallback if gettext isn't installed)
#
-if which gettext ^/dev/null >/dev/null
+if test -x (which gettext) ^/dev/null >/dev/null
function _ -d "Alias for the gettext command"
gettext fish $argv
end