Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when PowerShell Snap is trying to capture the output of a command line application that is installed in another snap #72

Open
the-mentor opened this issue Nov 22, 2020 · 1 comment

Comments

@the-mentor
Copy link

the-mentor commented Nov 22, 2020

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

@TravisEz13
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants