How to fix Windows "echo $PATH" empty result

When you try to run

example-3.sh

you will always get an empty result.

Instead, if you are in cmd, use

example-2.txt
echo %PATH%

but if you are using PowerShell, you need to use

example-1.powershell
$env:PATH

 


Check out similar posts by category: PowerShell, Windows