From: Nobuyoshi Nakada Date: 2009-01-20T13:13:59+09:00 Subject: [ruby-core:21451] Re: [Bug #907] Various system() and backticks problems on Windows Hi, At Tue, 20 Jan 2009 08:44:50 +0900, James M. Lawrence wrote in [ruby-core:21449]: > > > Note there are other popular Windows shells such the > > > PowerShell, so the general strategy of checking for built-in > > > shell commands cannot work. > > > > Is COMSPEC the PowerShell by the default on such systems? > > Probably not, but that is not relevant to the point I wanted to make. > > If system("built-in-shell-command", "1") fails on Unix, then it should > fail on Windows. Many of built-in shell commands of Unix also exist as an independent file. e.g., /bin/echo, /bin/test, /bin/[ and so on, but not on Windows. -- Nobu Nakada