zsh-workers
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Leonardo dos Reis Gama <leonardo.reis.gama@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Bug report: compinit breaks path resolution in case-insensitive file system
Date: Tue, 31 Jul 2018 20:18:10 -0500	[thread overview]
Message-ID: <AFEAB989-E20D-44C3-A688-6186701C7E79@dana.is> (raw)
In-Reply-To: <CAAJJbEWgDNFr==Ta2hXns=1OCAo6votBzsDvkZ+_umG6-MnrUw@mail.gmail.com>

On 29 Jul 2018, at 14:43, Leonardo dos Reis Gama <leonardo.reis.gama@gmail.com> wrote:
>% zsh -fc 'cmd'
>b/Cmd
>
>% zsh -fc 'autoload compinit; compinit; cmd'  # this one is broken
>a/cmd

I bet this is a simpler way to replicate the same thing:

  % mkdir a b; for 1 in a/cmd b/Cmd; install /dev/null $1
  % PATH=/tmp/b:/tmp/a /bin/zsh -fc 'cmd; hash -v'
  cmd=/tmp/b/cmd
  % PATH=/tmp/b:/tmp/a /bin/zsh -fc ': $commands; cmd; hash -v'
  Cmd=/tmp/b/Cmd
  cmd=/tmp/a/cmd

I guess something about how the command hash table is already filled in the
second case. compinit will be calling something that has the same effect. I only
looked at it for a second though

dana


      reply	other threads:[~2018-08-01  1:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-29 19:43 Leonardo dos Reis Gama
2018-08-01  1:18 ` dana [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=AFEAB989-E20D-44C3-A688-6186701C7E79@dana.is \
    --to=dana@dana.is \
    --cc=leonardo.reis.gama@gmail.com \
    --cc=zsh-workers@zsh.org \
    /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).