Path update command does not work on Windows #6

Aperto
aperto 2022-03-31 20:59:03 +00:00 da DBBrowne · 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"
Proprietario

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.
Effettua l'accesso per partecipare alla conversazione.
Nessuna etichetta
Nessuna milestone
Nessuna assegnatario
2 Partecipanti
Notifiche
Data di scadenza
La data di scadenza non è valida o fuori intervallo. Si prega di utilizzare il formato 'aaaa-mm-dd'.

Nessuna data di scadenza impostata.

Dipendenze

Nessuna dipendenza impostata.

Riferimento: root/pathman#6
No description provided.