test/dump-restore: Fix quoting on grep
authorDavid Bremner <bremner@debian.org>
Fri, 21 Oct 2011 00:14:30 +0000 (21:14 -0300)
committerDavid Bremner <bremner@debian.org>
Sun, 23 Oct 2011 13:27:57 +0000 (10:27 -0300)
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.

test/dump-restore

index 502fb8216852f1700ea0024485b0136225fef8ff..b66db997ed3fd743f16c6c8d5ec1a188db7240f1 100755 (executable)
@@ -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
 # 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"
 notmuch dump -- from:cworth > dump-dash-cworth.actual