Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug report: compinit breaks path resolution in case-insensitive file system
- X-seq: zsh-workers 43229
- From: dana <dana@xxxxxxx>
- To: Leonardo dos Reis Gama <leonardo.reis.gama@xxxxxxxxx>
- Subject: Re: Bug report: compinit breaks path resolution in case-insensitive file system
- Date: Tue, 31 Jul 2018 20:18:10 -0500
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7izUr5SNChCA0tW8LG5qtVNBIDNMrEwhQIyJ/R687SU=; b=NNXzjvlw2Zqq1FKdU7LwynA86GXt6SHdgS5QkewpRkAML0EJ5l94m7WQky+Cc6aexF aAThH857z0QqU/a6sbZz1Npsmmy6c3hbx5f9DYNMkeqXJy+tv5IqmYqttPrAaPOsDHJ+ TpDQ8SrGZQ78PVtwVnFstdr1mWhc+Lo4+HYmTEOEOU2D23FW6FcyXLP0370f8rWJFQ35 ZgdIIJMuHsoN4J+KyE04l9w4397Cc07HnNX5orfNi7k0Up9DQSi/z4k4UvZBpvAgTH3A 2g+Qjh/JiE5CKMQjmOLFcQuCqmGoCpqah3h1KUmwnvOfQuc+GF7veUEW5rZTznD3Neea 1ajA==
- In-reply-to: <CAAJJbEWgDNFr==Ta2hXns=1OCAo6votBzsDvkZ+_umG6-MnrUw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAAJJbEWgDNFr==Ta2hXns=1OCAo6votBzsDvkZ+_umG6-MnrUw@mail.gmail.com>
On 29 Jul 2018, at 14:43, Leonardo dos Reis Gama <leonardo.reis.gama@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author