[PATCH 3/3] test: use perl instead of sed -r for portability

Subject: [PATCH 3/3] test: use perl instead of sed -r for portability

Date: Tue, 4 Dec 2012 23:26:33 +0200

To: notmuch@notmuchmail.org

Cc:

From: Jani Nikula


Our OS X users report -r is not a supported option for sed. Use perl
instead.
---
 test/test-lib.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index f169785..31ed107 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -576,7 +576,7 @@ NOTMUCH_NEW ()
 
 notmuch_search_sanitize ()
 {
-    sed -r -e 's/("?thread"?: ?)("?)................("?)/\1\2XXX\3/'
+    perl -pe 's/("?thread"?: ?)("?)................("?)/\1\2XXX\3/'
 }
 
 NOTMUCH_SHOW_FILENAME_SQUELCH='s,filename:.*/mail,filename:/XXX/mail,'
-- 
1.7.10.4


Thread: