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
This commit is contained in:
axel
2006-03-14 10:21:27 +10:00
parent 99a93b5add
commit d58b9de63b
4 changed files with 8 additions and 8 deletions

View File

@@ -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