Re: [PATCH 1/2] gitcredentials(7): clarify quoting of helper examples
From: Andreas Schwab <hidden>
Date: 2020-05-01 07:19:25
From: Andreas Schwab <hidden>
Date: 2020-05-01 07:19:25
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. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."