type -p
and type -P
behaviors are at odds with its documentation
#6411
Labels
bug
Something that's not working as intended
Milestone
fish: 3.0.2-1940-g15c6d8fd-dirty
macOS: 10.14.6
iTerm 2: 3.3
type -p
andtype -P
do not currently behave, in all cases, as their documentation indicates.xs
is a function defined in its own file.xa
is an interactively-defined function.frotz
is a random word referring to neither a function nor an executable.Neither of the functions have executable counterparts.
Invoking
type -p xs
, produces the path to its file, as expected.Invoking
type -p xa
, produces a single dash (-
) as output, rather than nothing.Invoking
type -p frotz
, producestype: Could not find 'frotz'
, rather than nothing.Invoking
type -P
on all of the above producestype: Could not find '<argument>'
, rather than nothing.I believe that I have a fix for these in place, and will submit it shortly.
The text was updated successfully, but these errors were encountered: