aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/_.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-14 10:21:27 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-14 10:21:27 +1000
commitd58b9de63b7ac368ae67ab879c9a62df9ad46675 (patch)
treef87fb90559084b5b2fad4e03ad0569ebdc1e9cc7 /share/functions/_.fish
parent99a93b5add6ce77b619f8b72499dc58a91024522 (diff)
Use 'type -f' instead of 'which' to test for presense of command, since the latter does not set the exit status correctly on all platforms
darcs-hash:20060314002127-ac50b-6ed726bdcc9e3a7a9608a904c382973799dc73ef.gz
Diffstat (limited to 'share/functions/_.fish')
-rw-r--r--share/functions/_.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/_.fish b/share/functions/_.fish
index a1404761..accfdcbc 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 test -x (which gettext) ^/dev/null >/dev/null
+if type -f gettext >/dev/null
function _ -d "Alias for the gettext command"
gettext fish $argv
end