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

Re: [Patch] Using 'perl' in *.sh

From
MRMichal Rokos <michal.rokos@nextsoft.cz>
Date
Jul 10, 2006, 05:41 UTC
Message-ID
<200607100741.26377.michal.rokos@nextsoft.cz>
In-Reply-To
<7v4pxqfri7.fsf@assigned-by-dhcp.cox.net>
Hi,
On Sunday 09 July 2006 22:33, Junio C Hamano wrote:
Show 6 quoted lines
> Invocation of perl _in_ scripts can be controlled by user's
> PATH, but #! cannot be.  As Merlyn says 'env' is a nice hack,
> but we configure the scripts we install to have #!  pointing at
> the right interpreter as a more cleaner (than using 'env', that
> is) workaround anyway, so #! pointing at PERL_PATH and scripts
> relying on user's $PATH would be the right thing to do.
I don't se the point. If you ask me, I'd say it should be either:
- controlled fully via env: which means 'perl' in scripts and /usr/bin/env in 
*.perl; or
- set during install: which means 'full perl path' in scripts as well as in 
*.perl

Any mixture of above makes no sence to me. I'm afraid that any consensus will be hard to reach, but I don't see any other way round. (Well maybe some git specific exec wrapper to come over some broken 'env' commands)

M.
-- 
Michal Rokos

NextSoft s.r.o.
Vyskočilova 1/1410
140 21 Praha 4
phone:  +420 267 224 311
fax:    +420 267 224 307
mobile: +420 736 646 591
e-mail: michal.rokos@nextsoft.cz
Previous: Jan-Benedict GlawNext: Randal L. Schwartz
Message 11 of 16 in “Using 'perl' in *.sh”
  1. Using 'perl' in *.shMichal Rokos, Jul 8, 2006
  2. Junio C HamanoJul 8, 2006
  3. Alex RiesenJul 9, 2006
  4. Jan-Benedict GlawJul 9, 2006
  5. Junio C HamanoJul 9, 2006
  6. Michal RokosJul 9, 2006
  7. Randal L. SchwartzJul 9, 2006
  8. Jan-Benedict GlawJul 9, 2006
  9. Junio C HamanoJul 9, 2006
  10. Jan-Benedict GlawJul 9, 2006
  11. Michal RokosJul 10, 2006
  12. Randal L. SchwartzJul 10, 2006
  13. Johannes SchindelinJul 10, 2006
  14. Randal L. SchwartzJul 10, 2006
  15. Yakov LernerJul 9, 2006
  16. Alex RiesenJul 9, 2006

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.