From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de [80.67.18.29]) by sourceware.org (Postfix) with ESMTPS id 2ACAE3833095 for ; Mon, 12 Dec 2022 10:19:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2ACAE3833095 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=razorcat.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=razorcat.com Received: from [90.187.126.253] (helo=[10.0.206.186]) by smtprelay06.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1p4fu6-0004ix-EF for cygwin@cygwin.com; Mon, 12 Dec 2022 11:19:22 +0100 Message-ID: <1031eafe-fc3b-ab5b-6e63-b0f56c038332@razorcat.com> Date: Mon, 12 Dec 2022 11:21:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 To: cygwin@cygwin.com From: Frank Redeker Subject: Strange behavior when executing programs Organization: Razorcat Development GmbH Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Df-Sender: ZnJhbmsucmVkZWtlckByYXpvcmNhdC5jb20= X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello List, I have a strange behavior when the executing a program in a shell. I'm on Windows 10 Version 22H2 (OS Build 19045.2251). The strange behavior occurs when the current directory is on a drive created with subst. Originally I found the problem in a MSYS shell and already reported the problem here https://github.com/msys2/msys2.github.io/issues/234. In a reply someone asked me to check how it behaves under cygwin. Here are the steps to reproduce the problem. Inside a Windows CMD C:\Users\f.redeker>subst s: "C:\Program Files\Common Files\System" C:\Users\f.redeker>subst S:\: => C:\Program Files\Common Files\System On a computer with an older cygwin intallation $ uname -a CYGWIN_NT-6.1-WOW Mimir 2.9.0(0.318/5/3) 2017-09-12 10:41 i686 Cygwin $ sh --version GNU bash, version 4.4.12(3)-release (i686-pc-cygwin) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ pwd /cygdrive/s/ado $ realpath /cygdrive/s/ado/msadox.dll /cygdrive/s/ado/msadox.dll $ realpath msadox.dll /cygdrive/s/ado/msadox.dll On a computer with a more actual version, $ uname -a CYGWIN_NT-10.0-19045 MIMIR-2 3.3.6-341.x86_64 2022-09-05 11:15 UTC x86_64 Cygwin $ sh --version GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ pwd /cygdrive/s/ado $ realpath /cygdrive/s/ado/msadox.dll /cygdrive/s/ado/msadox.dll $ realpath msadox.dll /cygdrive/c/Program Files/Common Files/System/ado/msadox.dll Is there any way to restore the old behavior. Since with the new behavior my tests no longer work. Mit freundlichen Grüßen / Best Regards Frank Redeker