Path update command does not work on Windows #6

Atvērta
DBBrowne atvēra 2022-03-31 20:59:03 +00:00 · 1 comment

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"
Īpašnieks

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.
Pierakstieties, lai pievienotos šai sarunai.
Nav etiķešu
Nav atskaites punktu
Nav atbildīgo
2 dalībnieki
Paziņojumi
Izpildes termiņš
Datums līdz nav korekts. Izmantojiet formātu 'gggg-mm-dd'.

Izpildes termiņš nav uzstādīts.

Atkarības

Nav atkarību.

Atsaucas uz: root/pathman#6
No description provided.