[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#344269: lintian: false executable-not-elf-or-script warning with perl magic header



Frank Küster <frank@debian.org> writes:

> Package: lintian
> Version: 1.23.8
> Severity: normal

> Lintian warns about "executable-not-elf-or-script" on tetex-base's
> thumbpdf.pl and uniqleaf.pl.  Both contain a "magic perl header"

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

> It should either accept that header, or tell me why it is wrong.  I know
> that many trying-to-be-portable perl scripts use such a header.

Is that the first line of the file?  Generally one still starts such a
script with #!/bin/sh.  Otherwise, you're relying on the assumption that
any unrecognized file is started under /bin/sh.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: