unhash bug in 4.1bsd csh (w/manual fix)
ado at elsie.UUCP
ado at elsie.UUCP
Sat Jun 30 05:34:45 AEST 1984
Description:
The 4.1bsd manual entry for "csh" describes the builtin "unhash"
command thusly:
unhash
Use of the internal hash table to speed location of
executed programs is disabled.
While the disabling does indeed occur,
hashing is reenabled if a "set path" command is used.
Repeat by:
mkdir /tmp/progs
unhash
set path = ( /tmp/progs $path )
cp /bin/date /tmp/progs/when
when
and note that you get the diagnostic "when: Command not found."
Had hashing truly been disabled, "when" would have been found.
Fix:
Change the description of "unhash" in "/usr/man/man1/csh.1" to read:
Use of the internal hash table to speed location of
executed programs is disabled until either a "rehash" command
is given or the "path" variable is modified.
--
...decvax!allegra!umcp-cs!elsie!ado (301) 496-5688
(the DEC and VAX in decvax are Digital Equipment Corporation trademarks)
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list