PowerShell-Snap
PowerShell-Snap copied to clipboard
Issue when PowerShell Snap is trying to capture the output of a command line application that is installed in another snap
This will probably be a bit complicated to explain but I'll do my best. I'm running ubuntu 20.10 see my system's info below.
PS /home/dm/Git> snap --version
snap 2.47.1+20.10.1
snapd 2.47.1+20.10.1
series 16
ubuntu 20.10
kernel 5.8.0-29-generic
I have the latest version of Powershell installed as a snap
PS /home/dm/Git> snap list |grep powershell
powershell 7.1.0 149 latest/stable microsoft-powershell* classic
The below screenshot should show what I was trying to do
I tried to capture the output of the /snap/bin/bw command in a variable.
when I ran the command by itself it seemed to work properly.
If you have any questions or want my help in further debugging the issue please let me know.
I did additional testing and found out that it seems to happen in other snaps to reproduce you the issue you can run the following Steps
- Install PowerShell as a snap
sudo snap install --classic powershell
- Install Azure CLI as a snap
sudo snap install --candidate azure-cli
- Run PowerShell using pwsh
- in PowerShell Run the following command
$a = azure-cli
you should get the following error
This needs to be opened in the snapcraft forum
https://forum.snapcraft.io/c/snap
This issue can stay open, but please create a thread in the forum and add it to this issue.