Path update command does not work on Windows #6

Open
opened 2 years ago by DBBrowne · 1 comments
DBBrowne commented 2 years ago

Issue:

image

Solution:

https://git.rootprojects.org/root/pathman/compare/master...DBBrowne:windows-path-update

https://stackoverflow.com/a/714918/15995918

$env:Path                             # shows the actual content
$env:Path = 'C:\foo;' + $env:Path     # attach to the beginning
$env:Path += ';C:\foo'                # attach to the end
  • replace powershell path update with , eg:
    $env:PATH += ";C:\Users_/.local/opt/go/bin"
## Issue: ![image](https://user-images.githubusercontent.com/72463218/161112066-681b854e-809d-4218-8eed-7780536e196b.png) ## Solution: ### https://git.rootprojects.org/root/pathman/compare/master...DBBrowne:windows-path-update https://stackoverflow.com/a/714918/15995918 ``` $env:Path # shows the actual content $env:Path = 'C:\foo;' + $env:Path # attach to the beginning $env:Path += ';C:\foo' # attach to the end ``` - replace powershell path update with , eg: $env:PATH += ";C:\Users\_/.local/opt/go/bin"
Owner

I'd just assumed that if you were experienced enough to know to use PowerShell you'd also be experienced enough to know how to translate cmd.exe PATH to PowerShell PATH.

It's not possible to auto-detect which shell you're running it from between cmd.exe and powershell / pwsh.

Perhaps we could update the message to output both always.

I'd just assumed that if you were experienced enough to know to use PowerShell you'd also be experienced enough to know how to translate cmd.exe PATH to PowerShell PATH. It's not possible to auto-detect which shell you're running it from between cmd.exe and powershell / pwsh. Perhaps we could update the message to output both always.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.