{"issue":{"title":"child_process.spawn ignores PATHEXT on Windows","user":{"id":675056,"login":"OrangeDog","url":"https://api.github.com/users/OrangeDog","avatar_url":"https://secure.gravatar.com/avatar/4e325890903afc8269eb2c1aa57587b3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4e325890903afc8269eb2c1aa57587b3"},"milestone":null,"created_at":"2011-12-12T16:10:15Z","labels":[{"name":"child_process","url":"https://api.github.com/repos/joyent/node/labels/child_process","color":"e10c02"},{"name":"windows","url":"https://api.github.com/repos/joyent/node/labels/windows","color":"0b02e1"}],"state":"open","updated_at":"2011-12-20T20:08:04Z","id":2524677,"html_url":"https://github.com/joyent/node/issues/2318","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"body":"For example ```require('child.process').spawn('mycmd')``` won't find ```C:\\util\\mycmd.bat``` when PATH contains ```C:\\util``` and PATHEXT contains ```.BAT```.\r\n\r\nYe olde code (https://github.com/joyent/node/blob/v0.4/src/node_child_process_win32.cc) looks like it would have worked, but I have no idea where the v0.6 equivalent is.","number":2318,"url":"https://api.github.com/repos/joyent/node/issues/2318","comments":6,"assignee":null},"comment":{"user":{"id":275871,"login":"bnoordhuis","url":"https://api.github.com/users/bnoordhuis","avatar_url":"https://secure.gravatar.com/avatar/3d43d9038ab645ecb2e3a1df2951d30a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3d43d9038ab645ecb2e3a1df2951d30a"},"created_at":"2011-12-20T20:08:04Z","updated_at":"2011-12-20T20:08:04Z","id":3224502,"body":"It'd be superfluous on Unices - the two things a shell script needs is a valid shebang and the executable bit set.","url":"https://api.github.com/repos/joyent/node/issues/comments/3224502"},"action":"created"}