Reword documentation for filename in man status

This commit is contained in:
Andrey Mishchenko 2021-12-03 10:16:52 -05:00 committed by Fabian Homborg
parent 7d34908baa
commit a3bf41223e

View File

@ -54,7 +54,7 @@ The following operations (sub-commands) are available:
- ``current-command`` prints the name of the currently-running function or command, like the deprecated ``_`` variable. - ``current-command`` prints the name of the currently-running function or command, like the deprecated ``_`` variable.
- ``filename`` prints the filename of the currently running script. Also ``current-filename``, ``-f`` or ``--current-filename``. This depends on how the script was called - if it was called via a symlink, the symlink will be returned, and if the current script was received via ``source`` it will be ``-``. - ``filename`` prints the filename of the currently-running script. Also ``current-filename``, ``-f`` or ``--current-filename``. If the current script was called via a symlink, this will return the symlink. If the current script was received by piping into ``source``, then this will return ``-``.
- ``basename`` prints just the filename of the running script, without any path-components before. - ``basename`` prints just the filename of the running script, without any path-components before.