mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
type: Use command -a
This commit is contained in:
parent
502deda376
commit
db529f06b8
1 changed files with 1 additions and 5 deletions
|
@ -101,11 +101,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
|
||||||
# TODO: This should really be `command -sa`.
|
set paths (command -sa -- $i)
|
||||||
for file in $PATH/$i
|
|
||||||
test -x $file -a ! -d $file
|
|
||||||
and set paths $paths $file
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
for path in $paths
|
for path in $paths
|
||||||
set res 0
|
set res 0
|
||||||
|
|
Loading…
Reference in a new issue