dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Remove "hash -v" from man page
@ 2021-04-07 23:06 Tim Lee
  0 siblings, 0 replies; only message in thread
From: Tim Lee @ 2021-04-07 23:06 UTC (permalink / raw)
  To: dash

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-07 23:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 23:06 Remove "hash -v" from man page Tim Lee

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).