From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1709 invoked by alias); 1 Aug 2018 01:18:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43229 Received: (qmail 23104 invoked by uid 1010); 1 Aug 2018 01:18:15 -0000 X-Qmail-Scanner-Diagnostics: from mail-it0-f46.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.214.46):SA:0(-1.9/5.0):. Processed in 1.478872 secs); 01 Aug 2018 01:18:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIMWL_WL_MED,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7izUr5SNChCA0tW8LG5qtVNBIDNMrEwhQIyJ/R687SU=; b=tWSxa7oMgUGRlhCGik8VwPKaxt3D00YXfF70VTAxySsmrWVAMRHXGvS5PBPYl250sN A9+bAw7wpreqL1+7K63yGiUflFY78dN+0gBO9o0gbedixMAPBXJJuJcn86OhoNxnhXN+ CGEKyVCY8Y55X4OZi2bZis+7OTcZJmHc09LV2llhBsu1SPKEstrFKZyi517uyqFw4BZA XQ5zCebw0UyRdGIvcPUf76c02RWXs289k1hSzvqcuzgs8eeQTQBFMwqUnyIiQpwWMBlu kqrAUv0Gas899dueYH2hyNaslnz5JmmSaemKEjaFyKimwRdsNVWAynKlq6ZXps45ldTh 6hdQ== X-Gm-Message-State: AOUpUlFLEZ3JJ1hOyDrt4zF58vQHFGDbb+LSv9eTfcXbS9ORmqHalMUR 7ohK7CucW60pA8Jk+k92+/sgeg== X-Google-Smtp-Source: AAOMgpfJkGYhN5Coy/IqZ1vfMEXN25aNoyylhll8yS1VWxXiOJ+YTvNC9E8q5w/ZJpwofSNatRMzKQ== X-Received: by 2002:a24:40d2:: with SMTP id n201-v6mr1853356ita.144.1533086291552; Tue, 31 Jul 2018 18:18:11 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Bug report: compinit breaks path resolution in case-insensitive file system From: dana In-Reply-To: Date: Tue, 31 Jul 2018 20:18:10 -0500 Cc: zsh-workers@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Leonardo dos Reis Gama X-Mailer: Apple Mail (2.3445.6.18) On 29 Jul 2018, at 14:43, Leonardo dos Reis Gama = 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=3D/tmp/b:/tmp/a /bin/zsh -fc 'cmd; hash -v' cmd=3D/tmp/b/cmd % PATH=3D/tmp/b:/tmp/a /bin/zsh -fc ': $commands; cmd; hash -v' Cmd=3D/tmp/b/Cmd cmd=3D/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