From: Tobias Reif Date: 2002-05-29T20:48:19+09:00 Subject: Re: OS independent scripts, system calls on Windows and Linux > Dossy wrote: >> Unlike Unix, where "date" is a real command that can be executed >> by another program, in DOS the "date" command is a shell builtin, >> part of COMMAND.COM (or CMD.EXE, or whatever DOS shell you're >> running). So, this isn't a bug in Ruby at all, it's a misunderstanding >> of yours how things are supposed to work. It's not a bug, it's a potential RCR for a probably useful and feasible improvement. I do not want to need to know "how things work" regarding CMD.EXE etc.; I want Ruby to handle that for me, if possible. as I wrote: Then I might think about an RCR for a feature which saves me from writing stuff like [ http://ruby-talk.com/9739 ] ... if ENV.has_key?("OS") && ENV["OS"] =~ /nt/i puts "It's either NT or 2K, use 'cmd.exe /c '" if $DEBUG #it's either NT or Win2K command_shell = "cmd.exe /c " Tobi -- http://www.pinkjuice.com/