Package: dash
Version: 0.5.8-2.2
Severity: minor
On a dash command prompt:
$ man dash | grep -A 11 'hash -'
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.
$ hash -v man && echo OK
dash: 2: hash: Illegal option -v
$ hash -rv man && echo OK
OK
POSIX doesn't seem to mandate a -v, so I would call this a wishlist
documentation issue, but then again if there isn't a "-v" option, why
is the "-rv" version accepted? And if there is, why is it silent?
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.5.0-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dash depends on:
ii debianutils 4.7
ii dpkg 1.18.4
ii libc6 2.22-4
dash recommends no packages.
dash suggests no packages.
-- debconf information:
* dash/sh: true
--
JBR with qualifications in linguistics, experience as a Debian
sysadmin, and probably no clue about this particular package