Re: [PATCH 1/2] gitcredentials(7): clarify quoting of helper examples
- From
Jeff King <peff@peff.net>
- Date
- May 1, 2020, 07:31 UTC
- Message-ID
- <20200501073113.GA27392@coredump.intra.peff.net>
- In-Reply-To
- <87tv10i0ll.fsf@linux-m68k.org>
On Fri, May 01, 2020 at 09:19:18AM +0200, Andreas Schwab wrote:
Show 8 quoted lines
> On Mai 01 2020, Jeff King wrote:
>
> > # or you can specify your own shell snippet
> > -!f() { echo "password=`cat $HOME/.secret`"; }; f
> > +[credential]
> > +helper = "!f() { echo password=$(cat $HOME/.secret); }; f"
>
> That now lacks a pair of quotes around the argument of echo.Right, as discussed in the commit message.
-Peff