On Mar 13, Thomas Esser wrote:
> > The tetex system contains some important perl scripts, for instance
> > epstopdf. Unfortunately, these scripts run only with bourne shell or
> > cshell, but not with bash (bash1, bash2). There are differences in case
> > of internal exec evaluation, in this case of the recursive determination
> > of perl binary's location. But the bash is the default shell, at the
> > very least with redhat linux. Don't debate, if it is sensibly or not -
> > what is the best way to clear the user's problem?
>
> I cannot reproduce the problem. It works for me with bash as login shell
> and on Linux (tested SuSE 7.2 and RedHat 7.2).
>
> > One solution could be to write "#!/usr/bin/perl" oder simple ":" as
> > first line into the scripts ...
i'd like to second the suggestion with ":" as starting line
because this fixes a nasty problem on HP-UX (10.20 and 11.00):
we're using /bin/sh wrapper scripts like this
#!/bin/sh
# [ ... ]
command=`basename $0`
exec /usr/local/teTeX/bin/$command "$@"
and for those perl scripts like thumbpdf I get
/usr/local/teTeX/bin/thumbpdf[2]: Syntaxfehler in Zeile 24 : `(' wurde nicht
erwartet.
where line 24 is
my $program = uc($&) if $file =~ /^\w+/;
since our perl is installed as /usr/local/bin/perl (and sometimes
in a _very_ different and strange location;) I don't like
"#!/usr/bin/perl" either, but ":" fixes all out HPUX-problems so far !
> teTeX should work on systems where perl is not in /usr/bin. I don't see
> how a : should invoke perl.
yep:(
Harald Koenig
--
"I hope to die ___ _____
before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig \/\/\/\/\/\/\/\/\/
science+computing ag // / \\ \
[EMAIL PROTECTED] ^^^^^ ^^^^^