From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by sourceware.org (Postfix) with ESMTPS id D2560385702E for ; Tue, 30 Jun 2020 11:14:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D2560385702E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=corinna-cygwin@cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MHX3R-1jclxg1Hvd-00DZJO for ; Tue, 30 Jun 2020 13:14:09 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id DEE72A80864; Tue, 30 Jun 2020 13:14:06 +0200 (CEST) Date: Tue, 30 Jun 2020 13:14:06 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: symbolic links to /cygdrive/X/xxx with capital letter X Message-ID: <20200630111406.GF3499@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:phbnGYSY72ukLjDmqUE6Xr7yljUkbA7/jRb/imZ+2xgChnm51AM Q3Y1i1G0lP/zqiez7SinOioh5capM5FGaSwrLBuV6ROQFg1mqoZBDPWXruJduK3r26bCpud 21Jto8Is6hmyBjQFHMevsk/FuFOihJoKVprEEgOsqDRiwoy+JL6uZq8eAMSaNYKq4lgsSeN i3Oun6HF2Ij1rk9UfaCFQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:4y9PWcjpB1g=:L4v2lXad3+KChOLxGNTeF/ E7G4nlw4+fb33EsOChw30YOxRURjx2nxY6pxHYgPuDhF6bj1IJ52SsUUeiVJjkecW2svXUp82 7/o+1cqEO2dr7I4GitOO16I08+DOw+h5FytMYZFAXk0m/rXDLj+V+jlCm+bRp01zC37lRaXZI 8nt8AeasYSbA2iyGhC+FwHd9WfN70Qzk6TSvEHrSNmFjSQeGrRtqXEsNREcAK8/23FaDgNMmM QPPqLthtI5YSofhssgCJ+7PZYIPp9x3F8AiWSIKvrQiWa5gmJeLrZKUgNSN4PVIJ9wVtKN9bi gx/AQhSu5L4eP/++IqcjFbZch/lJDZ68WK3cXw+jSW5WvrpaN+aVwS85KQV7ohSWretF5upav S3MQhT7fGm87pdCqzonunZ5gUiTxZC2yqeYyVF9cptgCFQma4o0/WmADHM5DAOQYaKX3vvOii eSiPJKN0UtECgInCQQ37MXgj3VKB+OMy7PsniFxmq/3EzV6X4/LJfwh60gJTu5TcsTlJzLDdy 0WYNcJmPGP+FYX4PDsUkUOxjp9JTxHnyjQJ25H0ZcJ4QCI29n0jUGSats4jZPEMXP8xQW47bA xX0tW7H76H/2xkgC+TkCWQ1AAepZAFQFcNQ2MXn7EyE2nxWJbV81SG7nhCasW7WA6B00vlkGE hJcKeVr4Qcel4CiyElN23cQM7a6AwgosGtdEd7kDfqXPAM2PJZ0HPtgqJgMbBSR2iC1A53mF1 N3fMYz8gPgZAzRkFx/uv9LAWj9pBdbJkPxUSMCGXp3mHm9BFHJIzJuNJsNflrzImyZcQBEvDP 5ywO3nmSsVhMuSsDZR2rMueSnKK0JvqUT19wrpniWy8e5nYUV3wWO/8FNLnFwTI5nm2QbPymH SDGBC9HEN7K5LDaxQuIQ== X-Spam-Status: No, score=-99.5 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2020 11:14:12 -0000 On Jun 12 08:06, Arthur Norman via Cygwin wrote: > This running on Windows 10 1909 and cygwin has been updated to the latest > version. The effect was also visible on a freshly installed minimal cygwin > put on an almost fresh Windows 10 VM. > > Cygwin these days seems to have a behaviour that confuses me regarding the > case of a disk name: > > > ln -s "/cygdrive/c/Program Files" pf1 > > ln -s "/cygdrive/C/Program Files" pf2 > > ls -l pf* > lrwxrwxrwx 1 acn1 None 25 Jun 12 07:37 pf1 -> /cygdrive/c/Program Files > lrwxrwxrwx 1 acn1 None 20 Jun 12 07:37 pf2 -> /mnt/C/Program Files > > cygpath -ma ./pf1 > C:/cygwin64/home/acn1/pf1 > > You see from the above that when I use cygpath to convert from a cygwin name > the drive letter C: is returned in upper case. When that ends up after > "/cygdrive" the path behaves as I expect almost everywhere by is treated > specially for symbolic links. This seems to be a relatively new behaviour > and it bit me! > > [Use-case: I wanted to convert cygwin paths to be "very absolute" so that eg If you want "very absolute" paths, use something like ln -s /proc/cygdrive/c/... /proc/cygdrive always exists, even if you change the cygdrive prefix. It's a virtual symlink to the actual cygdrive prefix. Corinna -- Corinna Vinschen Cygwin Maintainer