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
This commit is contained in:
Fabian Homborg 2016-02-28 12:09:58 +01:00
parent 9151ec7092
commit fb5a8a089e

View file

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