From: Dave Thomas Date: 2002-01-23T01:34:05+09:00 Subject: Re: Windows ruby(cygwin version) Command Expansion Problem "Songsu Yun" writes: > Hi, > I posted the same question last night but for some reason it disappeared. > I am new to ruby, so this might be a stupid question. > When I use command expansion `dir` in cygwin version of ruby, I get "command > not found: dir". Under Windows, 'dir' is built in to the command processor (cmd.exe or command.com, depending on the version). Cygwin doesn't have this processor, so the command isn't recognized. You can either use the Cygwin equivalent, system("ls") or explicitly run the Windows command processor system("cmd /c dir") Dave