zsh-users
 help / color / mirror / code / Atom feed
* HASH_LIST_ALL does not work as expected
@ 2006-03-03  8:41 Com MN PG P E B Consultant 3
  2006-03-03 11:56 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Com MN PG P E B Consultant 3 @ 2006-03-03  8:41 UTC (permalink / raw)
  To: zsh-users Mailinglist

Maybe I misunderstood the zsh documentation here, but...

I have set

setopt CORRECT_ALL
setopt CORRECT
setopt HASH_LIST_ALL
setopt HASH_CMDS

I understood that due to HASH_LIST_ALL, whenever I try to complete a
command, the 
PATH is hashed for available commands first.

It does not work that way. Here a simple example, assuming ~/bin is in
my PATH:

cd
echo "echo foo bar baz" >bin/dummy
chmod +x bin/dummy

Now due to HASH_LIST_ALL, when I press "dum" and the tab key to request
completions,
I would expect that "dummy" is shown - but it isn't.

However when I explicitly type

rehash

an then press "dum" + tab key, it is completed to "dummy".

Similarily, if I subsequently do a

rm bin/dummy

the command is *still* completed to "dummy" if completion is requested
(meaning again that the
hash is not updated).

I found this behaviour with zsh 4.0.7 running under Linux and 4.2.4
running undre Cygwin.

Ronald


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-03 16:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-03  8:41 HASH_LIST_ALL does not work as expected Com MN PG P E B Consultant 3
2006-03-03 11:56 ` Peter Stephenson
2006-03-03 16:46   ` Wayne Davison

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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