Welcome! Please see the About page for a little more info on how this works.

+1 vote
in tools.deps.alpha by
h4. Current Behavior
Escaping quotes can be mystifying on Windows.  Here are some examples of what I found to work via trial and error from different shells.

h5. PowerShell
{code:borderStyle=solid}
clj -Sdeps '{:deps {viebel/klipse-repl {:mvn/version ""0.2.3""}}}' -m klipse-repl.main


h5. Command Prompt
{code:borderStyle=solid}
powershell -command clj -Sdeps '{:deps {viebel/klipse-repl {:mvn/version """"""0.2.3""""""}}}' -m klipse-repl.main


h5. Git Bash
{code:borderStyle=solid}
powershell -command 'clj -Sdeps "{:deps {viebel/klipse-repl {:mvn/version """"0.2.3""""}}}" -m klipse-repl.main'


h4. Preferred Behavior
# We should only suffer escaping requirements of the particular shell we are using (and any Java escaping requirements).  
# A {{powershell -command}} prefix should not be required.

From the examples above, the PowerShell version seems reasonable, the others, to me, do not.

h4. Approaches
There has been some discussion on approaches in #clj-windows on Slack:
* an .exe launcher, perhaps built by GraalVM or maybe ps2exe
* a .bat file might work might but might not offer a rich enough scripting language to do what needs to be done.  

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/TDEPS-133 (reported by lread)
...