{"thread":{"id":"27868","subject":"[BUG] git-am and git-submodule rely on $PATH to find perl","startedAt":"2011-07-20T22:35:56Z","lastAt":"2011-07-22T22:40:18Z","messageCount":2,"participants":["Peter Simons","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"171756","messageId":"87fwm0inqr.fsf@write-only.cryp.to","threadId":"27868","inReplyTo":null,"subject":"[BUG] git-am and git-submodule rely on $PATH to find perl","fromName":"Peter Simons","fromEmail":"simons@cryp.to","sentAt":"2011-07-20T22:35:56Z","receivedAt":"2011-07-20T22:35:56Z","isPatch":false,"sender":{"key":"simons@cryp.to","avatar":"https://gravatar.com/avatar/56227a0fffc05e2d0584aecce45f0f1fd2b2c0a464a266dff6c2a4aa9191241e?d=mp&s=160"},"body":"Both scripts run perl without any path, i.e. they don't use the\n$PERL_PATH that was passed at build time.\n"},{"id":"171876","messageId":"20110722224017.GC19620@sigill.intra.peff.net","threadId":"27868","inReplyTo":"87fwm0inqr.fsf@write-only.cryp.to","subject":"Re: [BUG] git-am and git-submodule rely on $PATH to find perl","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2011-07-22T22:40:18Z","receivedAt":"2011-07-22T22:40:18Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Jul 21, 2011 at 12:35:56AM +0200, Peter Simons wrote:\n\n> Both scripts run perl without any path, i.e. they don't use the\n> $PERL_PATH that was passed at build time.\n\nThis isn't exactly a bug. The rule we usually follow in git is that you\ncan use \"perl\" in the PATH when you are doing simple awk-like things\nthat any version of perl should do. But you must use PERL_PATH for\n#!-lines (because we can't do PATH lookup there), or for any non-trivial\nscript.\n\nThat being said, I don't see any downside to using PERL_PATH. The\nMakefile tweaks would be pretty minimal. Want to work up a patch?\n\n-Peff\n"}]}