git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: contrib/diff-highlight: stop hard-coding perl location

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Feb 22, 2016, 05:56 UTC
Message-ID
<CAPig+cSE77JbD9CShrxnFsDLd9DrG9L15BSecERk_Qih9CMOig@mail.gmail.com>
In-Reply-To
<CA+boQ6YWWkudgwC7zn-3UPWqfkw+uJZgwcBWcGvJDcCUakjzHA@mail.gmail.com>

On Mon, Feb 22, 2016 at 12:54 AM, Peter Dave Hello <hsu@peterdavehello.org> wrote:

Show 7 quoted lines
> From: Peter Dave Hello <hsu@peterdavehello.org>
>
> Use `#!/usr/bin/env perl` instead of `#!/usr/bin/perl`,
> the util "env" can help located the "perl",
> so that it can work on FreeBSD and other platforms.
>
> Signed-off-by: Peter Dave Hello <hsu@peterdavehello.org>
Better, thanks.
Show 15 quoted lines
> ---
>  contrib/diff-highlight/diff-highlight | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/diff-highlight/diff-highlight
> b/contrib/diff-highlight/diff-highlight
> index ffefc31..b57b0fd 100755
> --- a/contrib/diff-highlight/diff-highlight
> +++ b/contrib/diff-highlight/diff-highlight
> @@ -1,4 +1,4 @@
> -#!/usr/bin/perl
> +#!/usr/bin/env perl
>
>  use 5.008;
>  use warnings FATAL => 'all';
Previous: Peter Dave HelloNext: Peter Dave Hello
Message 2 of 4 in “contrib/diff-highlight: stop hard-coding perl location”
  1. Peter Dave HelloFeb 22, 2016
  2. Eric SunshineFeb 22, 2016
  3. Peter Dave HelloFeb 22, 2016
  4. Eric SunshineFeb 22, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.