mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 01:31:36 +08:00
type: Use command -a
This commit is contained in:
parent
502deda376
commit
db529f06b8
|
@ -101,11 +101,7 @@ function type --description 'Print the type of a command'
|
|||
if test $multi != yes
|
||||
set paths (command -s -- $i)
|
||||
else
|
||||
# TODO: This should really be `command -sa`.
|
||||
for file in $PATH/$i
|
||||
test -x $file -a ! -d $file
|
||||
and set paths $paths $file
|
||||
end
|
||||
set paths (command -sa -- $i)
|
||||
end
|
||||
for path in $paths
|
||||
set res 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user