[tex-live] local perl

Frank Küster frank at kuesterei.ch
Sun Jan 14 11:28:33 CET 2007


Reinhard Kotucha <reinhard.kotucha at web.de> wrote:

>>>>>> "Siep" == Siep Kroonenberg <siepo at cybercomm.nl> writes:
>
>   > I just noticed that texi2html from the jan 12 image starts with 
>   > #!/usr/local/bin/perl
>
> Looks a bit unfortunate indeed. 
>
> Build/source/utils/texi2html/texi2html.pl starts with: 
> #! @PERL@
>
> I assume that "#! @PERL@" is replaced later.  But it should be
> replaced by
>
> #!/usr/bin/env perl
>
> I suppose that this is quite portable.

Some scripts use a "perl magic string" instead.  But this has its
drawbacks: It only works when invoked from a shell.  If a program or
non-shell-script invokes the "magic script" directly, it will fail.
Therefore, if /usr/bin/env is portable enough, it is probably better.

Regards, Frank 

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)


More information about the tex-live mailing list