functions -v --details
is indecipherable when used interactively
#5576
Labels
Milestone
functions -v --details
is indecipherable when used interactively
#5576
The output should be more in line with
status
orset --show
, and be human readable. We can probably only improve this if we are outputting to a TTY because of compatibility reasons now.For example,
line number: 9
would be less confusing than just9
in this output:... I had a hard time guessing what it meant.
When given a function name that cannot be found, a non-zero exit status should probably occur and an error printed to stderr, rather than this mess:
Also,
autoloaded
/not-autoloaded
is ambiguous and could be better described. I had initially assumed this would tell me if the function had already been autoloaded or if it has not yet been autoloaded from the filename printed, and thatn/a
meant the function was explicitly defined somewhere.In reality calling
--details
causes any function that can be autoloaded to be loaded and it was reporting if it was loaded that way vs. explicitly defined.A better approach to making this easy to parse would be allowing
--details
to take an optional argument rather than relying on fixed indicies:The text was updated successfully, but these errors were encountered: