Re: [PATCH 1/3] setup: Provide GIT_PREFIX to built-ins
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 23, 2011, 12:09 UTC
- Message-ID
- <BANLkTi=ssDA=y1CnMAZtvk6dTyMmd4LjrQ@mail.gmail.com>
- In-Reply-To
- <1306058229-93800-1-git-send-email-davvid@gmail.com>
On Sun, May 22, 2011 at 11:57, David Aguilar <davvid@gmail.com> wrote:
> + printf "#!/bin/sh\n" >diff && > + printf "printf \"\$GIT_PREFIX\"\n" >>diff &&
If you're going to use /bin/sh (which might be a non-POSIX shell) it's probably better to use echo than rely on printf understanding \n.