The following command run fine on pwsh
clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "1.0.0"} cider/cider-nrepl {:mvn/version "0.43.3"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}}}' -M:cider/nrepl
But fails on powershell (windows powershell 5.1) , when ran on windows powershell, the double quotes are removed , hence to run it on windows powershell we need to escape the douvble quotes are run the following command instead
clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version ""1.0.0""} cider/cider-nrepl {:mvn/version ""0.43.3""}} :aliases {:cider/nrepl {:main-opts [""-m"" ""nrepl.cmdline"" ""--middleware"" ""[cider.nrepl/cider-middleware]""]}}}' -M:cider/nrepl
Also this second command fails on pwsh (powershell dotnet) because the strings are double double quoted
This issue, for me seem to be an issue with the clojure command, since as per the powershell docs, you should not need to escape double quotes inside a single quoted string
I found this issue as I was trying cider on emacs, cider by default creates the second command, and by default fails when using pwsh
Is this a problem than can be fixed, or should cider just handle pwsh different from powershell