-
Notifications
You must be signed in to change notification settings - Fork 444
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
Windows start script interprets commas (,
) and splits arguments where it should just pass them to the application
#1650
Comments
,
) and splits arguments, where it should just leave them alone,
) and splits arguments where it should just pass them to the application
Looks like
output:
|
Hmm, so according to https://stackoverflow.com/a/8145923 commas are separators for arguments in windows, so this behaviour is actually expected. If we use Let me know if you want to keep this open for discussion, otherwise we can close this issue. |
Hi @mpollmeier Thanks for the detailed description and follow up of your findings 🙏 ❤️ I can't speak for any windows users as I never had to shipped on windows or coded on windows. I'm happy to merge your suggestion, if you want to provide a PR 😊
|
I wish I knew of a better way. Currently the bat script needs to understand how many arguments to consume for every input. For example, this code handles sbt-native-packager/src/main/resources/com/typesafe/sbt/packager/archetypes/scripts/bat-template Lines 159 to 166 in 6b69d6c
If you pass If you pass For a more extreme example, see how sbt handles |
Expected behaviour
Commas (
,
) in arguments should be handed over to the application rather than interpreted by the start script.Actual behaviour
For the linux start script, that's the case.
The windows starter script interprets the comma and splits it up into separate arguments.
Way to reproduce
Workaround: triple double-quotes
Extra context
This is not a windows powershell issue - the below works correctly on both linux and windows:
The text was updated successfully, but these errors were encountered: