|
From: | Paolo Bonzini |
Subject: | Re: Explicit interpreter paths considered harmful |
Date: | Thu, 29 Oct 2009 12:55:01 +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 |
--- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -1,4 +1,7 @@ -#!/usr/bin/perl +#!/bin/sh +# Accommodate systems where /usr/bin/perl is not the right path. +exec perl -x "$0" "$@" +#!perl The only assumption it makes is about /bin/sh, but that one seems to be hard (impossible?) to avoid anyway.
Yeah. But why not the standard #! /bin/sh eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if 0; suggested in perlrun(1)? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |