aboutsummaryrefslogtreecommitdiff
path: root/test/dump-restore
diff options
context:
space:
mode:
authorDavid Bremner <bremner@debian.org>2011-10-20 21:14:30 -0300
committerDavid Bremner <bremner@debian.org>2011-10-23 10:27:57 -0300
commit8a65353b4f38a062ef225623f49ffd585e693f4c (patch)
treea637483180948a1c648fdea940b8936516e227e6 /test/dump-restore
parentc4579513442e734c7928a02cf8ffa5a9531b9921 (diff)
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.
Diffstat (limited to 'test/dump-restore')
-rwxr-xr-xtest/dump-restore2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dump-restore b/test/dump-restore
index 502fb82..b66db99 100755
--- a/test/dump-restore
+++ b/test/dump-restore
@@ -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