mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-28 04:35:09 +00:00
type: Fix "-a"
This matched _all_ executable commands, where it should only match all
executable commands _with the given name_.
Fixes #4070.
(cherry picked from commit 0fc9ec5538
)
This commit is contained in:
parent
ee572a13c8
commit
44830589ab
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ function type --description 'Print the type of a command'
|
||||||
set paths (command -s -- $i)
|
set paths (command -s -- $i)
|
||||||
else
|
else
|
||||||
# TODO: This should really be `command -sa`.
|
# TODO: This should really be `command -sa`.
|
||||||
for file in $PATH/*
|
for file in $PATH/$i
|
||||||
test -x $file -a ! -d $file
|
test -x $file -a ! -d $file
|
||||||
and set paths $paths $file
|
and set paths $paths $file
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue