PowerShell-Snap icon indicating copy to clipboard operation
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

Open the-mentor opened this issue 4 years ago • 1 comments

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. image

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

  1. Install PowerShell as a snap sudo snap install --classic powershell
  2. Install Azure CLI as a snap sudo snap install --candidate azure-cli
  3. Run PowerShell using pwsh
  4. in PowerShell Run the following command $a = azure-cli you should get the following error

image

the-mentor avatar Nov 22 '20 18:11 the-mentor

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.

TravisEz13 avatar Jan 06 '21 22:01 TravisEz13