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

ubuntu.exe run is glitchy #2532

Closed
leongrdic opened this issue Sep 30, 2017 · 4 comments
Closed

ubuntu.exe run is glitchy #2532

leongrdic opened this issue Sep 30, 2017 · 4 comments
Assignees

Comments

@leongrdic
Copy link

leongrdic commented Sep 30, 2017

  • Your Windows build number: Microsoft Windows [Version 10.0.16299.0]

  • What you're doing and what's happening:

I created a script test.sh in my linux home dir that prints out the first two arguments sent to it:

#!/bin/bash
echo "$1"
echo "$2"

Next I tried calling from Windows:

ubuntu run ~/test.sh "this is argument1" "this is argument2"

The output I received was:

this
is
  • What's wrong / what should be happening instead:

The output I was expecting is:

this is argument1
this is argument2

On the contrast, when I run:

wsl ~/test.sh "this is argument1" "this is argument2"

I get the expected output.

So the way ubuntu run and wsl process their arguments must be different in some way. I'm guessing the quotes " are getting ignored for ubuntu run

@therealkenc
Copy link
Collaborator

#2348 (message). [The actual bug is that ubuntu.exe and openSUSE-42.exe exist, but I digress.]

@zadjii-msft
Copy link
Member

Filed MSFT:14049024 to investigate on my end. This is the expected behavior with the way it's written today, but I'm not sure quite yet the right way to fix this, if it should be fixed.

@benhillis
Copy link
Member

@zadjii-msft - It should probably perform command line parsing the same way that wsl.exe and bash.exe do.

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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

4 participants