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

It looks like whoever updated the source forgot to update the RDoc comment.

Dave

···

On Jul 9, 2004, at 10:38, Dick Davies wrote:

ri says system should return false if the command failed, but if the
file doesn't exist, my version of ruby returns Errno::ENOENT.

* Dave Thomas <dave@pragprog.com> [0748 16:48]:

>
>ri says system should return false if the command failed, but if the
>file doesn't exist, my version of ruby returns Errno::ENOENT.

It looks like whoever updated the source forgot to update the RDoc
comment.

My gut reaction was that this was a bug in system. It makes more sense
to me for the documented behaviour to happen, but maybe that's just
the context I'm looking at it from...

···

On Jul 9, 2004, at 10:38, Dick Davies wrote:

--
It is illegal to drive more than two thousand sheep down Hollywood
Boulevard at one time.
Rasputin :: Jack of All Trades - Master of Nuns

Dick,

Check the archives (or Google Groups) for more information on this --
the change is known, and was discussed at length a couple of weeks
ago.

Lennon

* Lennon Day-Reynolds <rcoder@gmail.com> [0751 17:51]:

Dick,

Check the archives (or Google Groups) for more information on this --
the change is known, and was discussed at length a couple of weeks
ago.

Thanks, I sent a patch to David.

···

--
Liar, n.:
  A lawyer with a roving commission.
    -- Ambrose Bierce, "The Devil's Dictionary"
Rasputin :: Jack of All Trades - Master of Nuns