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

opam env --switch=SWITCHDIR is not quoted in PowerShell #5204

Closed
jonahbeckford opened this issue Jul 26, 2022 · 0 comments · Fixed by #5205
Closed

opam env --switch=SWITCHDIR is not quoted in PowerShell #5204

jonahbeckford opened this issue Jul 26, 2022 · 0 comments · Fixed by #5205
Milestone

Comments

@jonahbeckford
Copy link
Contributor

jonahbeckford commented Jul 26, 2022

I'll send PR.

After creating a local Opam switch in a Windows PowerShell 5 directory with a space, like:

mkdir "Person 1"
cd "Person 1"
opam dkml init

the switch suggestion shows:

# Run (& opam env --switch=C:\Person 1) -split '\r?\n' | ForEach-Object { Invoke-Expression $_ } to update the current
shell environment

That needs to be:

(& opam env --switch="C:\Person 1") -split '\r?\n' | ...
jonahbeckford added a commit to jonahbeckford/opam that referenced this issue Jul 26, 2022
jonahbeckford added a commit to jonahbeckford/opam that referenced this issue Jul 26, 2022
rjbou pushed a commit to jonahbeckford/opam that referenced this issue Jul 27, 2022
rjbou pushed a commit to jonahbeckford/opam that referenced this issue Jul 27, 2022
Leonidas-from-XIV pushed a commit to Leonidas-from-XIV/opam that referenced this issue Mar 10, 2023
@rjbou rjbou added this to the 2.2.0~alpha milestone Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants