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

Karl Berry karl at freefriends.org
Sun May 20 22:55:02 CEST 2012


Hi Jean,

Back on this mail from almost two years ago.

    Date: Mon, 2 Aug 2010 15:57:54 +0100
    From: Jean Krohn <jb.krohn at gmail.com>
    To: tex-k at tug.org

    When called from a ruby script, epstopdf exits without doing anything[...]
    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;

According to http://osdir.com/ml/lang.ruby.general/2002-06/msg01388.html
aka ruby-bugs:PR#315, Ruby simply refuses to execute anything that does
not start with #!.  I (rather belatedly) changed epstopdf, since we
already rely on #!/usr/bin/env perl for most of our other scripts.
I'll upload it to CTAN soon.

Thanks,
Karl




More information about the tex-k mailing list