test/dump-restore: Fix quoting on grep

Thanks to Thomas Schwinge for noticing yet another place where quoting
matters. Since the shell translates \. to ., the regex passed to grep
is too generous without the quotes.

The use of [.] is the suggestion of Tomi Ollila.
This commit is contained in:
David Bremner 2011-10-20 21:14:30 -03:00
parent c457951344
commit 8a65353b4f

View file

@ -45,7 +45,7 @@ test_expect_equal_file dump.expected dump-1-arg-dash.actual
# Note, we assume all messages from cworth have a message-id # Note, we assume all messages from cworth have a message-id
# containing cworth.org # containing cworth.org
grep cworth\.org dump.expected > dump-cworth.expected grep 'cworth[.]org' dump.expected > dump-cworth.expected
test_begin_subtest "dump -- from:cworth" test_begin_subtest "dump -- from:cworth"
notmuch dump -- from:cworth > dump-dash-cworth.actual notmuch dump -- from:cworth > dump-dash-cworth.actual