[tex-k] epstopdf possible bug: exits immediatly when called from ruby

Jean Krohn jb.krohn at gmail.com
Mon Aug 2 16:57:54 CEST 2010


Dear all,

I am emailing tex-k at tug.org as it is the bug report address in the epstopdf man
page.

When called from a ruby script, epstopdf exits without doing anything, which I
assume is not the desired behaviour.
This seems to be due to somewhere in the first three lines, as replacing them
with a simple '#!/usr/bin/env perl' gives the desired behaviour:

eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q'
  if 0;
use strict;

The shell session below illustrates the problem:

 % epstopdf --version
epstopdf ($Id: epstopdf.pl 16244 2009-11-30 01:36:08Z karl $) 2.12
Copyright 2009 Karl Berry et al.
Copyright 2002-2009 Gerben Wierda et al.
Copyright 1998-2001 Sebastian Rahtz et al.
License RBSD: Revised BSD <http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
 % ruby -e "system('epstopdf --version')"
 % ruby -e "system('ls --version')"
ls (GNU coreutils) 8.5
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.


Is this an epstopdf issue, or a problem with ruby?

Regards,

Jean Krohn
 


More information about the tex-k mailing list