zsh-workers
 help / color / mirror / code / Atom feed
From: Paul Kimoto <kimoto@lightlink.com>
To: Bart Schaefer <schaefer@candle.brasslantern.com>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: command-spelling correction strangeness
Date: Fri, 1 Oct 1999 15:09:37 -0400	[thread overview]
Message-ID: <19991001150937.A8296@perdita.antigonus.net> (raw)
In-Reply-To: <991001163203.ZM28059@candle.brasslantern.com>

On Fri, Oct 01, 1999 at 04:32:03PM +0000, Bart Schaefer wrote:
> OK, the real scoop:  My diagnosis was correct as far as it went, but I
> missed one detail, which is that even when hashcmds is set it's possible
> for `pathchecked' (zsh's internal pointer to how much of the path it has
> searched) to already have advanced beyond the directory containing the
> actual command.  In that case resuming the check where it left off is not
> sufficient.
> 
> Zsh's internal Cmdnam structure holds a pointer to the spot in the path
> where the command was found, so it's possible to restart the search from
> there, and I actually had that implemented for a bit; but it occurred to
> me that the reason the command can't be executed might be because it was
> moved to another place in the path, in which event the search ought to be
> started over from the beginning.  This works because hashing of a single
> command does a test for executable-non-directory-ness, whereas hashing an
> entire directory simply stuffs every entry into the table.  (So the whole
> problem can be avoided in the first place by "unsetopt hashdirs".)
> 
> This goes on top of the previous patch.

[patch snipped]

The combination of this and the patch in
<990929053943.ZM22102@candle.brasslantern.com> 
(from 29 Sep 1999) does the job for me.

	-Paul <kimoto@lightlink.com>


      reply	other threads:[~1999-10-01 19:09 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
     [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 [this message]

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=19991001150937.A8296@perdita.antigonus.net \
    --to=kimoto@lightlink.com \
    --cc=schaefer@candle.brasslantern.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).