D
Dick Davies
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$
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$