opscode/chef — comment on commit 2efbafeae9ec09a7f7f8c77009bd6994d7706b03
File: chef/lib/chef/shell_out/windows.rb line 158
By jkeiser:

I think it will do the right thing. The else block will only be called if there are no special characters in the line, which includes quotes, so using everything up to the first whitespace will work. More complicated parsing could work as well, and would even allow us to run more commands without cmd.exe--it just requires writing the Windows command parser in Ruby :)