From a3bf41223ed591cef8cd745b1f4d43ddeacde387 Mon Sep 17 00:00:00 2001 From: Andrey Mishchenko Date: Fri, 3 Dec 2021 10:16:52 -0500 Subject: [PATCH] Reword documentation for `filename` in `man status` --- doc_src/cmds/status.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/cmds/status.rst b/doc_src/cmds/status.rst index 760023ac8..d9a57bbc6 100644 --- a/doc_src/cmds/status.rst +++ b/doc_src/cmds/status.rst @@ -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. -- ``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.