Following the instructions from here: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#ubuntu-1804
If you install powershell and attempt to execute pwsh immediately after, the appplication works flawlessly.
If you install powershell-preview in the _exact same way_, the installation completes.. and then fails to register pwsh to the PATH. This occurs regardless of whether you've previously installed the stable version of PowerShell. Attempting to invoke pwsh after installation simply fails with a command not found error (if you haven't already installed the stable version) or will execute the previously installed stable version instead (if you have).
Am I missing something here? :/
Able to execute pwsh directly after finishing sudo apt-get install powershell-preview
Command not found error.
WSL Ubuntu 18.04, installing powershell-preview (v7-preview4 I assume?)
Try running pwsh-preview, this allows PowerShell 6 and 7 preview to be installed side by side. This is something that could be documented more prominently, right now pwsh-preview is mentioned only in Installation via Snap section.
That was it! Thanks! 馃槉