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

Re: [PATCH] Fix git-instaweb breakage on MacOS X due to the limited sed functionality

From
Wincent Colaiuta <win@wincent.com>
Date
Dec 19, 2007, 11:28 UTC
Message-ID
<23306E3C-24F1-4626-A956-02531644B786@wincent.com>
In-Reply-To
<20071219105752.GA23932@hashpling.org>
El 19/12/2007, a las 11:57, Charles Bailey escribió:
> -	sed "$script" "$1.tmp"  > "$1"
> +	# The generated scripts assume that perl is /usr/bin/perl
> +	# so the assumption here should be no more harmful
> +	/usr/bin/perl -p -e "$script" "$1.tmp"  > "$1"

I think it's a bad idea to hard-code the perl path there; the generated scripts only assume /usr/bin/perl if the user hasn't overridden it at build time:

	PERL_PATH=/foo/perl make ...
Using just this should work fine anyway:
	perl -p -e ...

Cheers, Wincent

Previous: Charles BaileyNext: Charles Bailey
Message 2 of 9 in “Fix git-instaweb breakage on MacOS X due to the limited sed functionality”
  1. Fix git-instaweb breakage on MacOS X due to the limited sed functionalityCharles Bailey, Dec 19, 2007
  2. Wincent ColaiutaDec 19, 2007
  3. Charles BaileyDec 19, 2007
  4. Wincent ColaiutaDec 19, 2007
  5. Charles BaileyDec 19, 2007
  6. Charles BaileyDec 19, 2007
  7. Charles BaileyDec 19, 2007
  8. Fix git-instaweb breakage on MacOS X due to the limited sed functionalityCharles Bailey, Dec 19, 2007
  9. Wincent ColaiutaDec 19, 2007

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.