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

Command not correct processed if Args is 1 string long #33

Open
timfallmk opened this issue Jan 25, 2018 · 2 comments
Open

Command not correct processed if Args is 1 string long #33

timfallmk opened this issue Jan 25, 2018 · 2 comments

Comments

@timfallmk
Copy link

When passing Args: []string{} to the child process, having only a single string in the array produces an incorrect result (i.e. the command doesn't run). Having more than one string produces the correct result.

Args: []string{"some verb", "some other verb"}
Works

Args: []string{"some verb"}
Does not work

@sevlyar
Copy link
Owner

sevlyar commented Mar 5, 2018

Thank you for the report, @timfallmk
A value of Context.Args field is passed to os.StartProcess without any modifications exclude a case when the value is nil.
I can't reproduce the issue. Could you provide detailed steps (and code) to reproduce the issue and information about your OS: go env & uname -a.

@timfallmk
Copy link
Author

See my comment in #35 :)

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

No branches or pull requests

2 participants