From: Brian Foster <brian.foster@maxim-ic.com>
To: git mailing list <git@vger.kernel.org>
Subject: [BUG 1.7.6.1] `git config --bool --get-regexp' omits separating space... sometimes!
Date: Mon, 10 Oct 2011 12:20:21 +0200 [thread overview]
Message-ID: <201110101220.21890.brian.foster@maxim-ic.com> (raw)
Hello,
# Script to illustrate the problem:
rm -f Config
cat <<\EOF >Config
[Example]
Boolean
Other = yes
EOF
git_Config() { git config --file Config "$@"; }
git version
git_Config --get-regexp '.*\.Boolean' #1. ✓ Ok: example.boolean
git_Config --bool --get-regexp '.*\.Boolean' #2. ✗ NO: example.booleantrue
git_Config --get-regexp '.*\.Other' #3. ✓ Ok: example.other yes
git_Config --bool --get-regexp '.*\.Other' #4. ✓ Ok: example.other true
exit
# Output:
git version 1.7.6.1
example.boolean
example.booleantrue
example.other yes
example.other true
Case 2 omits the space between the key-name and (generated) value,
making the output difficult to parse/process. Without checking,
I assume --int (and friends) have a similar bug?
cheers!
-blf-
--
Brian FOSTER
Principal MTS, Software
Maxim Integrated Products (Microcontroller BU), formerly Innova Card
Web : http://www.maxim-ic.com/
next reply other threads:[~2011-10-10 10:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-10 10:20 Brian Foster [this message]
2011-10-10 12:44 ` [BUG 1.7.6.1] `git config --bool --get-regexp' omits separating space... sometimes! Matthieu Moy
2011-10-10 12:54 ` [PATCH] config: display key_delim for config --bool --get-regexp Matthieu Moy
2011-10-10 20:59 ` Junio C Hamano
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201110101220.21890.brian.foster@maxim-ic.com \
--to=brian.foster@maxim-ic.com \
--cc=git@vger.kernel.org \
/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.
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 NNTP newsgroup(s).