go-daemon icon indicating copy to clipboard operation
go-daemon copied to clipboard

Command not correct processed if `Args` is 1 string long

Open timfallmk opened this issue 6 years ago • 2 comments

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

timfallmk avatar Jan 25 '18 20:01 timfallmk

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.

sevlyar avatar Mar 05 '18 05:03 sevlyar

See my comment in #35 :)

timfallmk avatar Mar 05 '18 20:03 timfallmk