Path update command does not work on Windows #6

Ouvert
créé 2022-03-31 20:59:03 +00:00 par DBBrowne · 1 commentaire

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"
Propriétaire

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.
Connectez-vous pour rejoindre cette conversation.
Sans labels
Sans jalon
Sans assignation
2 participants
Notifications
Échéance
La date d’échéance est invalide ou hors plage. Veuillez utiliser le format 'aaaa-mm-dd'.

Aucune échéance n'a été définie.

Dépendances

Aucune dépendance définie.

Référence : root/pathman#6
Sans contenu.