aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/type.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-28 12:09:58 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-28 12:12:13 +0100
commitfb5a8a089e19d879f792ff836671121928e10125 (patch)
treea6f55ab27440b44c263b72716562c1ee54b9913e /share/functions/type.fish
parent9151ec709258273a555180696bdbae8bb0794658 (diff)
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
Diffstat (limited to 'share/functions/type.fish')
-rw-r--r--share/functions/type.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/type.fish b/share/functions/type.fish
index 02a84341..138783f7 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