From 94b7c8d5e6a758d35f6a198babb0e8a4afb80dcb Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 17 Mar 2006 23:23:56 +1000 Subject: [PATCH] Don't call the type function when defining the _ function, as this will cause a recursive dependency darcs-hash:20060317132356-ac50b-4b3b0b6ec3f2e82649c74cc358f1505bf202bbd4.gz --- share/functions/_.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/functions/_.fish b/share/functions/_.fish index accfdcbc3..b3c5e218d 100644 --- a/share/functions/_.fish +++ b/share/functions/_.fish @@ -3,7 +3,8 @@ # Alias for gettext (or a fallback if gettext isn't installed) # -if type -f gettext >/dev/null +set -l path (which $i ^/dev/null) +if test -x (echo $path) function _ -d "Alias for the gettext command" gettext fish $argv end