Issue #8410 has been updated by Josh Cooper.

Btw, [%x](http://ruby-doc.org/core/classes/Kernel.html#M001408) does not work 
when the command is located in a directory with a space. 

For example, msysgit is installed in C:\Program Files (x86)\Git. If I add 
C:\Program Files (x86)\Git\bin to my PATH it fails:

<pre>
Z:\work\puppet>set PATH="c:\Program Files (x86)\Git\bin";%PATH%
Z:\work\puppet>ruby -e "puts `git rev-parse HEAD`"
-e:1:in ``': No such file or directory - git rev-parse HEAD (Errno::ENOENT)
</pre>

But setting the path using short names works:

<pre>
set PATH=c:\progra~2\git\bin;%PATH%
Z:\work\puppet>ruby -e "puts `git rev-parse HEAD`"
922edb28d2eeeea7812b02c7064bc5930aa1aaa5
</pre>
----------------------------------------
Feature #8410: Exec provider for Windows
https://projects.puppetlabs.com/issues/8410

Author: Jacob Helwig
Status: Accepted
Priority: Normal
Assignee: 
Category: windows
Target version: Telly
Affected Puppet version: 
Keywords: 
Branch: 


Basic ability to run commands.

Commands must either be present in PATH, or fully specified.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to