From: Kaspar Schiess Date: 2005-11-26T02:50:43+09:00 Subject: Re: system() on windows Hi gregarican, > How is this broken? the system() method works directly with the Windows > shell. And the rake command isn't contained within the Windows shell as > an internal command. That's why system('dir') works and system('rake') > doesn't. This would seem logical in my opinion and I am far from a > Microsoft fanboy :-) On my unix shell: -------------------------- eule@makkara:~> rake rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4/lib/rake.rb:1222:in `load_rakefile' eule@makkara:~> irb irb(main):001:0> system 'rake' rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4/lib/rake.rb:1222:in `load_rakefile' => false --------------------------- On windows: --------------------------- D:\temp>rake rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) c:/unix/ruby/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake.rb:1373:in `load_rakefile' D:\temp>irb irb(main):001:0> system 'rake' => false --------------------------- I think I know how this happens and everything (having done quite some c programming on windows), its just that I think that it breaks expectations. I hope I could illustrate my point. kaspar -- code manufacture & ruby lab at http://www.tua.ch/ruby