-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behavior of MSYS shell version 5.1.8 #3605
Comments
Can you check how Cygwin behaves in the same situation? |
On a computer with an older version.
`
|
So we can infer that Bash is definitely not the only factor, but I'm not sure what would be the difference. Is your msys2-runtime the same version in the original test? (edited to fix the above sentence to say "not the only factor" as originally intended) |
Nevermind, I guess the Anyway, I recommend:
|
I asked and Corinna produced this patch: https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commitdiff;h=5ba5e09b9d39feaedc9be0dcd88d085b256c5d40 It might fix the inconsistency. |
Yes, this patch cygwin-3.5.0-0.30.g5ba5e09b9d39 solved the problem. I cloned https://github.com/msys2/msys2-runtime, merged Corinna's change into winsup/cygwin/path.cc, and tried to build msys-2.0.dll. (./configure & make). But no DLL was build. |
I have a strange behavior when the executing a program in a MSYS shell version 5.1.8. I'm on Windows 10 Version 22H2 (OS Build 19045.2251). The strange behavior occurs when current directory is on a drive created with subst.
The following steps can be used to reproduce the behavior.
Inside a Windows CMD
Inside a shell version 5.1.8
But
Inside a shell version 4.4.19
With Process Monitor I have observed that the shell does not directly start the program to be executed, but first another shell. When creating this shell it seems that the current directory is given when CreateProcess is called. Here, however, not the path with the subst drive (S:\ado) is used but the one to which the subst drive points (C:\Program Files\Common Files\System\ado). Due to this behavior the Windows functions (e.g. _fullpath or GetFullPathName) do not return the result with the subst path if not an absolute path is specified as input parameter.
Is there any way to preserve the old behavior in the current MSYS version?
The text was updated successfully, but these errors were encountered: