From: Kyle Meyer <kyle@kyleam.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: Confused about git-config's description of escaping
Date: Mon, 03 Aug 2020 16:58:42 -0400 [thread overview]
Message-ID: <874kpjwinx.fsf@kyleam.com> (raw)
In-Reply-To: <xmqqd047v62u.fsf@gitster.c.googlers.com>
Junio C Hamano writes:
> Kyle Meyer <kyle@kyleam.com> writes:
[...]
>> What's gained by specifying "Inside double quotes"? Are there any cases
>> where a value, whether enclosed in double quotes or not, doesn't need "
>> or \ characters escaped?
>
> Perhaps there is another description missing, either from the
> written docs or from your reading of it, that says that a value with
> these characters must be enclosed in double quotes pair?
Thanks for the reply.
I'm not spotting anything in the current git-config documentation that
says that. And it would be an incorrect description of the syntax,
wouldn't it? When entering a value containing a quote with 'git
config', enclosing double quotes aren't inserted:
$ git config a.b 'c"d'
$ tail -n2 .git/config
[a]
b = c\"d
$ git config a.b
c"d
So, it seems valid for a value to have these characters escaped without
having them enclosed in a pair of double quotes.
prev parent reply other threads:[~2020-08-03 20:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-03 19:24 Confused about git-config's description of escaping Kyle Meyer
2020-08-03 20:15 ` Junio C Hamano
2020-08-03 20:58 ` Kyle Meyer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874kpjwinx.fsf@kyleam.com \
--to=kyle@kyleam.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).