From fb5a8a089e19d879f792ff836671121928e10125 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 28 Feb 2016 12:09:58 +0100 Subject: [PATCH] Use command which in type Turns out some shells will alias which to be something function-aware, but doing this on fish would blow up because it would call type which would then call which which would then call type.... Fixes #2775 --- share/functions/type.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/type.fish b/share/functions/type.fish index 02a843412..138783f71 100644 --- a/share/functions/type.fish +++ b/share/functions/type.fish @@ -120,7 +120,7 @@ function type --description "Print the type of a command" if test $multi != yes set paths (command -s -- $i) else - set paths (which -a -- $i ^/dev/null) + set paths (command which -a -- $i ^/dev/null) end for path in $paths set res 0