bug-gnulib
[Top][All Lists]
Advanced

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

Re: Explicit interpreter paths considered harmful


From: Paolo Bonzini
Subject: Re: Explicit interpreter paths considered harmful
Date: Thu, 29 Oct 2009 23:02:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4

On 10/29/2009 10:46 PM, Ludovic Courtès wrote:
>
>  #! /bin/sh
>  eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
>       if 0;
>
>  suggested in perlrun(1)?
>
> Actually that doesn’t work:

Looks like a typo, further down in perlrun(1) there is

                #!/usr/bin/perl
                eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
                        if $running_under_some_shell;

and this one is what is used by scripts I have in many /usr/bin Perl scripts. But the utility of it totally escapes me. Your solution using perl -x has the advantage of working, so go for it...

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]