xilun / cbwin

Launch Windows programs from "Bash on Ubuntu on Windows" (WSL)
Other
327 stars 25 forks source link

Problem with arguments containing the character "&" #27

Open PutoML opened 8 years ago

PutoML commented 8 years ago

When passing an argument containing the character & to wstart or wcmd, even if enclosed in quotes, it's treated as a separate command. So doing something like this:

wstart 'c:/progra~2/opera/launcher.exe' "http://www.kanzenshuu.com/forum/viewtopic.php?f=25&t=34819&start=440#p1130225"

...launches opera pointing to the URL http://www.kanzenshuu.com/forum/viewtopic.php?f=25, and then executes "t=34819", followed by "start=440#p1130225".

xilun commented 8 years ago

This is probably due to lack of quoting & escaping like #25. I'm working on it.