[PATCH 5/6] test/dump-restore: Fix quoting on grep

David Bremner david at tethera.net
Fri Oct 21 12:47:56 PDT 2011


From: David Bremner <bremner at debian.org>

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.
---
 test/dump-restore |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/dump-restore b/test/dump-restore
index 2f8dcc7..a6d6d65 100755
--- a/test/dump-restore
+++ b/test/dump-restore
@@ -69,7 +69,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
-- 
1.7.5.4



More information about the notmuch mailing list