mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue