zsh-users
 help / color / mirror / code / Atom feed
From: "Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com@siemens.com>
To: "zsh-users Mailinglist" <zsh-users@sunsite.dk>
Subject: HASH_LIST_ALL does not work as expected
Date: Fri, 3 Mar 2006 09:41:19 +0100	[thread overview]
Message-ID: <6F0CB04509C11D46A54232E852E390ACF230C1@MCHP7R6A.ww002.siemens.net> (raw)

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


             reply	other threads:[~2006-03-03  8:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-03  8:41 Com MN PG P E B Consultant 3 [this message]
2006-03-03 11:56 ` Peter Stephenson
2006-03-03 16:46   ` Wayne Davison

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=6F0CB04509C11D46A54232E852E390ACF230C1@MCHP7R6A.ww002.siemens.net \
    --to=mn-pg-p-e-b-consultant-3.com@siemens.com \
    --cc=zsh-users@sunsite.dk \
    /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.
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).