jbang: jbang doesn't work if path to java contains spaces (Windows)
jbang doesn’t work if path to java binary contains spaces.
$ jbang https://twitter.com/maxandersen/status/1266904846239752192 twitter!
Der Befehl ""C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
My Java-Location: C:\Program Files\AdoptOpenJDK\jdk-11.0.8.10-hotspot\bin
(Sorry, for pasting in German)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (10 by maintainers)
Commits related to this issue
- Removed carets for Windows This should fix #245 . — committed to OLibutzki/jbang by OLibutzki 4 years ago
- Fixes #245 Spaces in Windows command lines are now properly escaped — committed to quintesse/jbang by quintesse 4 years ago
- Fixes #245 Spaces in Windows command lines are now properly escaped — committed to quintesse/jbang by quintesse 4 years ago
- Fixed IT tests for #245 — committed to quintesse/jbang by quintesse 4 years ago
Was able to reproduce: