Why ``julia -e`` does not work on Windows?

Since you use the same quotes both around and inside the string in this case it looks like your shell interprets this as executing the code using Pkg; Pkg.activate(.). You would get the same error trying that exact code in Bash too. Perhaps you can escape the inner quotes as \", or use single quotes just like in the Bash example (I don’t have access to a Cmd shell so can not test).

1 Like