From: Jeff King Date: Sun, 28 Sep 2014 23:14:28 GMT Subject: Re: [PATCH] Use SHELL_PATH as hash bang in test suite askpass helper script. 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