mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
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:
parent
9151ec7092
commit
fb5a8a089e
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ function type --description "Print the type of a command"
|
||||||
if test $multi != yes
|
if test $multi != yes
|
||||||
set paths (command -s -- $i)
|
set paths (command -s -- $i)
|
||||||
else
|
else
|
||||||
set paths (which -a -- $i ^/dev/null)
|
set paths (command which -a -- $i ^/dev/null)
|
||||||
end
|
end
|
||||||
for path in $paths
|
for path in $paths
|
||||||
set res 0
|
set res 0
|
||||||
|
|
Loading…
Reference in a new issue