Open
Description
In Windows, backslashes are used at the OS path separator. When I run this code, I get an incorrect result for the value of cmd
:
func main() {
sh := `upx c:\github.com\jftuga\test\test.exe`
cmd, err := shellwords.Parse(sh)
if err != nil {
fmt.Println("err:", err)
return
}
fmt.Println(cmd)
}
This outputs:
[upx c:github.comjftugatesttest.exe]
when it should output:
[upx c:\github.com\jftuga\test\test.exe]
Can this be fixed, please?
Metadata
Metadata
Assignees
Labels
No labels