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

Re: [PATCH] Use SHELL_PATH as hash bang in test suite askpass helper script.

From
Jeff King <peff@peff.net>
Date
Sep 28, 2014, 23:14 UTC
Message-ID
<20140928231428.GA9061@peff.net>
In-Reply-To
<1411942867-3995-1-git-send-email-bdwalton@gmail.com>
On Sun, Sep 28, 2014 at 11:21:07PM +0100, Ben Walton wrote:
> The askpass script that is created for use by the test suite should
> use SHELL_PATH for its hash bang instead of /bin/sh. Commit 5a4352024
> introduced the use of idioms not supported in some legacy /bin/sh
> implementations.
Sounds good.
> -cat >askpass <<\EOF
> -#!/bin/sh
> +echo "#!$SHELL_PATH" >askpass
> +cat >>askpass <<\EOF
This can just become:
  write_script askpass <<\EOF

which handles this for us (and you can get rid of the manual chmod then, too).

-Peff
Previous: Ben WaltonNext: Ben Walton
Message 2 of 5 in “Use SHELL_PATH as hash bang in test suite askpass helper script.”
  1. Use SHELL_PATH as hash bang in test suite askpass helper script.Ben Walton, Sep 28, 2014
  2. Jeff KingSep 28, 2014
  3. Ensure SHELL_PATH is the hash bang for test suite askpass helper script.Ben Walton, Sep 29, 2014
  4. Jeff KingSep 29, 2014
  5. Junio C HamanoSep 29, 2014

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.