From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22104 invoked by alias); 29 Jul 2018 19:43:32 -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: 43222 Received: (qmail 21120 invoked by uid 1010); 29 Jul 2018 19:43:32 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f53.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.221.53):SA:0(-1.9/5.0):. Processed in 0.637889 secs); 29 Jul 2018 19:43:32 -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,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID, T_REMOTE_IMAGE autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: leonardo.reis.gama@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tb0HZAVpYIIhoUmYoCqISZMymdiSgRlQ5HJ8WYSOd8k=; b=asQig3DkhTMiRpH7qIRIc0LrQQFEBEf7+g1b13Ucirqm1qcovLWJG3XTFunfEUtv1S zgjNgU48ibtf+n7HEu1K5O/VBbBjANufd+xGWlSaOjhPgtj4HP4is19U0dUOf6u4sJ6r TscFKaeqpXE8XzRjHfWWT7wjjgjfb+nrw1EYTwZEnhHxIXYD3S95levKW61WBitRm4tl r7pj/XzRQHfIWWqlh69a1e2I1qh5ENXED6MbNTsNLuq+4lO+4u7X2YAgAKiInBzGFkVj Efg8LFz8yJvU4KyYy/YlefbSHcHC956PZ1Xby5Zid2EOJZFO4iNOxfpoW4Mg6ji3AT/i cONQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tb0HZAVpYIIhoUmYoCqISZMymdiSgRlQ5HJ8WYSOd8k=; b=c2qdUNJPwy92xLvRPNF6To+fh6zicGsCSf63DGPiVxLX1ORT2eDxHfnAHDJ7NU30dt xSzR+rnWtSlvjh0uIDZH2y1dD/LXstiwimJBrS+243JWf8ABPHqTgPNe+fu1ctJEvOyB 2I2ZJ9c6TLiCr9B+rqVg2UPCranpYhIdv/VCtCmEEBX0MafeWGKtXExIc60SRCAl476Y BxiWV2IGIruy2do8tG9v7o6nHKL8ygZttvNO9rsqh4XUAp8N3tjIh/WOMslkJT+rBhqf ywziCMi+rd6PSupHjzzaVjr8j4Gvjdq6ianq/j/nd+3TRAS4IhVpBPBUIYssCzp8JMHz sKoA== X-Gm-Message-State: AOUpUlEOvRWHmlR98YzOQOsSC3DRrr3exg46O80aS2M4MkLA2XK+pmkS ovjX62iYPVYaK67+hbkWyvZ9xPcf3Kf4EkyMHASgVUE5 X-Google-Smtp-Source: AAOMgpdI8xctxli8SheVnEjiX9FQYUcVe/zPS6LxOoCXovo+OIVhBqux/ZwY/AS8eeosTiXZw+VxO9dPaZEi0Xt6yzU= X-Received: by 2002:adf:9183:: with SMTP id 3-v6mr14632813wri.122.1532893406677; Sun, 29 Jul 2018 12:43:26 -0700 (PDT) MIME-Version: 1.0 From: Leonardo dos Reis Gama Date: Sun, 29 Jul 2018 16:43:14 -0300 Message-ID: Subject: Bug report: compinit breaks path resolution in case-insensitive file system To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="000000000000fbce960572288e3a" --000000000000fbce960572288e3a Content-Type: text/plain; charset="UTF-8" I'm on macOS High Sierra (10.13.6) with a case-insensitive HFS+ file system. The behaviour observed is identical with either the system's zsh (/bin/zsh) of version 5.3 or the Homebrew's zsh (/usr/local/bin/zsh) of version 5.5.1. Steps to reproduce: 1) Create two executable scripts with the same name but different cases as follows /tmp/a/cmd: #!/bin/zsh print a/cmd /tmp/b/Cmd: #!/bin/zsh print b/Cmd (Note the uppercase 'C' in the second file name) 2) Set PATH: % PATH='/tmp/b:/tmp/a:/bin' 3) Run the following commands: % zsh -fc 'cmd' > b/Cmd % zsh -fc 'autoload compinit; compinit; cmd' # this one is broken > a/cmd % zsh -fc 'autoload compinit; compinit; rehash; cmd' # this trick doesn't work when my rc files are loaded > b/Cmd % zsh -fc 'cmd; autoload compinit; compinit; cmd' > b/Cmd > b/Cmd % zsh -fc 'cmd; rehash; autoload compinit; compinit; cmd' # broken again > b/Cmd > a/cmd % zsh -fc 'cmd; rehash; autoload compinit; compinit; rehash; cmd' > b/Cmd > b/cmd Note: I know that case-insensitive file systems are broken by design and it's not an absolute zsh fault. My specific problem was fixed by simply renaming the "/tmp/b/Cmd" file to "/tmp/b/cmd", but I thought it would be nice to report the issue even then. Hope it helps! ;) Thank you for your attention. Leonardo Gama [image: https://]about.me/leogama --000000000000fbce960572288e3a--