mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user