puppetlabs/puppet — pull request #1091 by joshcooper (2012-08-30 05:32:50+00:00)
Title: (#16019) Don't add Unix paths to Windows search path

Previously, we were adding `/usr/sbin` and `/sbin` to Puppet's shell
search path on all platforms, including Windows.

This commit changes the behavior on Windows so that those paths are not
added. It also doesn't add Windows equivalents, because the environment
it inherits from its parent process already contains a suitable search
path.

This commit also sets File::PATH_SEPARATOR appropriately when using the
windows or posix shared context.