dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Lee <progscriptclone@gmail.com>
To: dash@vger.kernel.org
Subject: Remove "hash -v" from man page
Date: Thu, 8 Apr 2021 07:06:10 +0800	[thread overview]
Message-ID: <20210407230610.gl3x6z63ejotu6eg@localhost> (raw)

src/dash.1 mentions "hash -v":

  hash -rv command ...
      The shell maintains a hash table which remembers the locations of
      commands.  With no arguments whatsoever, the hash command prints
      out the contents of this table.  Entries which have not been
      looked at since the last cd command are marked with an asterisk;
      it is possible for these entries to be invalid.

      With arguments, the hash command removes the specified commands
      from the hash table (unless they are functions) and then locates
      them.  With the -v option, hash prints the locations of the com‐
      mands as it finds them.  The -r option causes the hash command to
      delete all the entries in the hash table except for functions.


However "hash -v" results in an error:

    $ hash -v
    sh: 1: hash: Illegal option -v

The source code [1] shows that only the "-r" option is available; there
is no "-v" option. If there is no "-v" option, then it should be removed
from the documentation.

[1]: https://git.kernel.org/pub/scm/utils/dash/dash.git/tree/src/exec.c#n266

                 reply	other threads:[~2021-04-07 23:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210407230610.gl3x6z63ejotu6eg@localhost \
    --to=progscriptclone@gmail.com \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).