arturadib/shelljs — pull request #134 by impinball (2014-06-15 21:21:31+00:00)
Title: Search PATHEXT instead of 3 hardcoded values

Better to search the PATHEXT variable instead of hard-coding an incomplete list for Windows executables. A default fallback consisting of XP's default value is also introduced just in case. The fallback value is hardcoded as a constant at the top of the file.

It also results in shorter code.