public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Frank Redeker <frank.redeker@razorcat.com>
To: cygwin@cygwin.com
Subject: Strange behavior when executing programs
Date: Mon, 12 Dec 2022 11:21:50 +0100	[thread overview]
Message-ID: <1031eafe-fc3b-ab5b-6e63-b0f56c038332@razorcat.com> (raw)

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 
<http://gnu.org/licenses/gpl.html>

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 
<http://gnu.org/licenses/gpl.html>

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

             reply	other threads:[~2022-12-12 10:19 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 10:21 Frank Redeker [this message]
2022-12-12 12:12 ` Corinna Vinschen
2022-12-12 12:46   ` Frank Redeker
2022-12-12 13:09     ` Corinna Vinschen
2022-12-13  9:51       ` Corinna Vinschen
2022-12-13 12:54         ` Frank Redeker
2022-12-13 14:15           ` Corinna Vinschen
2022-12-13 16:35             ` Frank Redeker
2022-12-13 16:54               ` Jon Turney
2022-12-13 17:04                 ` Oskar Skog
2022-12-14  5:38         ` Frank Redeker
2022-12-14 10:14           ` Corinna Vinschen
2022-12-12 14:52   ` [EXTERNAL] " Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-12-12 15:20     ` Corinna Vinschen
2022-12-12 15:29       ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-12-12 15:40         ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-12-12 15:42         ` Corinna Vinschen
2022-12-12 15:50           ` Corinna Vinschen
2022-12-12 15:22     ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-12-12 15:41       ` Corinna Vinschen
2022-12-12 16:40         ` Frank Redeker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1031eafe-fc3b-ab5b-6e63-b0f56c038332@razorcat.com \
    --to=frank.redeker@razorcat.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).