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

scala.bat cannot handle space in paths #7355

Closed
scabug opened this issue Apr 9, 2013 · 2 comments
Closed

scala.bat cannot handle space in paths #7355

scabug opened this issue Apr 9, 2013 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Apr 9, 2013

If you have space in paths on windows you need to provide quotes

  • but then you get this error msg caused by wrong parameter parsing:
    PS C:\Users\bjornr> scala "test blank/myJar.jar"
    blank/myJar.jar""=="-toolcp" was unexpected at this time.
    PS C:\Users\bjornr>

Suggested fix: at line 17 in scala.bat change "%1%" to "%~1%"
based on this advice:
http://stackoverflow.com/questions/473117/pass-path-with-spaces-as-parameter-to-bat-file

@scabug
Copy link
Author

@scabug scabug commented Apr 9, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7355?orig=1
Reporter: @bjornregnell
Affected Versions: 2.10.1

@scabug
Copy link
Author

@scabug scabug commented Apr 11, 2013

@bjornregnell said:
Associated pull request:
scala/scala#2384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants