-
Notifications
You must be signed in to change notification settings - Fork 493
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
Path conversion with and without winpty differs #411
Comments
I have the same issue.
|
It seems that this breaks a lot of tools such as node. See: yarnpkg/yarn#2591 What help is needed to fix this? |
If I recall right, a double leading forward slash ( Don't know if that helps, but I'm on mobile, and can't really research at the moment. :( |
Might be related rprichard/winpty#127 |
If you came here because your docker commands are not working, the interim solution is to use the upstream msys2 binaries for winpty and NOT the msys2 package. Get them here: https://github.com/rprichard/winpty/releases See related: rprichard/winpty#125 |
Is there any effort to update the MSYS package retrieved by |
For binaries, msys2 has no upstream.
…On Fri, Nov 16, 2018, 11:53 PM Sarang Joshi ***@***.*** wrote:
Is there any effort to update the MSYS package retrieved by pacman -S
winpty to be updated to the upstream msys2 binary released at
https://github.com/rprichard/winpty/releases?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#411 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA_pdNw9i0imvi_raZJFldn9O1ByEnZxks5uv0_2gaJpZM4G6h5y>
.
|
To fix the msys2 package, there are two options. Remove the path conversion patch, which may confuse some people when their paths don't work with winpty, or make a new patch with support for the |
If removing the path conversion patch can be problematic (risks breaking in situations where people expect it), how about providing a version of winpty functionality without the path conversion, but under a different winpty binary, or activated with an explicit option. This way both behaviors (winpty path conversion and no winpty path conversion) would still be available and both could be used. |
As a workaround, putting this function in .bashrc fixed the issue for me.
@mingwandroid edited this in-case anyone misses the correction below. |
@mikeslattery thank you very much for this workaround. |
@mikeslattery I put the function in my ~/.bashrc but I now get the following errors when loading Git-Bash:
|
@djbrown there is a missing space after if [[ "$1" == "docker" ]]; then |
Same result in
MINGW64
. I'm not sure why they differ, but I think it should be consistent.Also,
MSYS2_ARG_CONV_EXCL
doesn't seem to affect winpty. Maybe there should also be aWINPTY_ARG_CONV=0
option as well to allow disabling of argument conversion.The text was updated successfully, but these errors were encountered: