Skip to content
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

/usr/bin/start shell script should be replaced with a native windows executable #344

Open
basinilya opened this issue Sep 13, 2024 · 0 comments

Comments

@basinilya
Copy link

basinilya commented Sep 13, 2024

/usr/bin/start has this line:

cmd //c start "${@//&/^&}"

The double slash prevents conversion of /c into C:\, instead it's converted to /c with a single slash. I couldn't find this info at https://www.msys2.org/docs/filesystem-paths/ though.

I expect that this tool will accept the command line arguments, perform the needed path conversions and launch cmd /c start ...

However, MSYS2_ARG_CONV_EXCL=* or MSYS2_ARG_CONV_EXCL=// affect both the actual arguments and //c. This variable should only affect the actual arguments and I see only one way to do that: replace the script with a native windows executable. Then MSYS2 will pass some command line to that executable with already converted paths and it can run cmd /c without a problem.

I personally do export MSYS2_ARG_CONV_EXCL='*' in my "git for windows" installation and this breaks git help: starts an interactive cmd prompt instead of launching the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant