Path update command does not work on Windows #6

Aberto
aberto por DBBrowne 2022-03-31 20:59:03 +00:00 · 1 comentário

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"
Proprietário

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.
Acesse para participar desta conversação.
Sem etiqueta
Sem marco
Sem responsável
2 participante(s)
Notificações
Data limite
A data limite é inválida ou está fora do intervalo. Por favor, use o formato 'dd/mm/aaaa'.

Data limite não informada.

Dependências

Nenhuma dependência definida.

Referência: root/pathman#6
Nenhuma descrição fornecida.