From: Dick Davies Date: 2004-07-10T00:38:37+09:00 Subject: ruby CVS system() bug? ri says system should return false if the command failed, but if the file doesn't exist, my version of ruby returns Errno::ENOENT. I noticed it because Instiki 0.9.1 tries to detect pdflatex like this: rasputin@lb:instiki-0.9.1$ grep pdflatex instiki.rb |head -1 pdflatex_available = system "pdflatex -version" which goes boom like so: rasputin@lb:instiki-0.9.1$ ruby instiki.rb instiki.rb:21:in `system': No such file or directory - pdflatex -version (Errno::ENOENT) from instiki.rb:21 rasputin@lb:instiki-0.9.1$ ruby -v ruby 1.9.0 (2004-07-01) [i386-netbsdelf2.0F] rasputin@lb:instiki-0.9.1$ -- Why is it that we rejoice at a birth and grieve at a funeral? It is because we are not the person involved -- Mark Twain Rasputin :: Jack of All Trades - Master of Nuns