From: Paul Kimoto <kimoto@lightlink.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: command-spelling correction strangeness
Date: Wed, 29 Sep 1999 02:14:08 -0400 [thread overview]
Message-ID: <19990929021408.A22412@perdita.antigonus.net> (raw)
In-Reply-To: <990929053943.ZM22102@candle.brasslantern.com>
[This is a copy of a message sent to Bart Schaefer
<schaefer@candle.brasslantern.com> that I Cc'ed to zsh-workers
before remembering that I was on a ORBS-tainted site whose mail
is rejected by sunsite.auc.dk.]
On Wed, Sep 29, 1999 at 05:39:43AM +0000, Bart Schaefer wrote:
> A change was made about a year ago (zsh-workers/4404 and follow-ups) to
> remove entries for non-executable files from the command hash table.
> This happens only when "autocd" is set, because the only bad side effect
> of bogus hash table entries is that if they're directories rather than
> non-executable files, you can't autocd into them.
>
> However, if you have the hashcmds option set, the rest of the path is
> searched and the correct location gets immediately added back again --
> so you do not set hashcmds. Am I correct?
[detailed explanation snipped]
Yes (as you may have seen in my "zsh -f" demonstration). The explanation
is plausible. I am now a little mystified by the documentation where it
says:
: HASH_CMDS <D>
: Note the location of each command the first time it is executed.
: Subsequent invocations of the same command will use the saved
: location, avoiding a path search. If this option is unset, no
^^^^^^^^^^^^^^^^^^^^^^^^^^^
: path hashing will be done at all.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(I admit that I have read only the documentation, not the source code.)
> So ... what you describe may or may not be a bug, but the following should
> cause the command table to be updated more intelligently. I'd be just as
> happy with encouraging people not to use "correct" without "hashcmds" ...
It could be added to the documentation ....
[patch snipped]
-Paul <kimoto@lightlink.com>
next prev parent reply other threads:[~1999-09-29 6:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-29 3:56 Paul Kimoto
1999-09-29 5:39 ` Bart Schaefer
1999-09-29 6:14 ` Paul Kimoto [this message]
[not found] ` <19990929020225.A21607@adore.lightlink.com>
1999-10-01 2:11 ` Bart Schaefer
[not found] ` <19990930232303.A5982@perdita.antigonus.net>
[not found] ` <991001040228.ZM25695@candle.brasslantern.com>
[not found] ` <19991001002659.A3777@adore.lightlink.com>
1999-10-01 16:32 ` Bart Schaefer
1999-10-01 19:09 ` Paul Kimoto
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=19990929021408.A22412@perdita.antigonus.net \
--to=kimoto@lightlink.com \
--cc=zsh-workers@sunsite.auc.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).