mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
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
This commit is contained in:
parent
04cf08b93b
commit
de50539c02
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue