aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch')
-rw-r--r--testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch b/testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch
new file mode 100644
index 0000000000..b0948c81f1
--- /dev/null
+++ b/testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch
@@ -0,0 +1,26 @@
+From dfe09a7c5e3a2273f963d53432ef1686b34547db Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
+Date: Mon, 21 Aug 2017 21:34:14 +0200
+Subject: [PATCH 2/2] mquote: make sed expression to strip signature work with
+ busybox sed
+
+Closes: #74 [via git-merge-pr]
+---
+ mquote | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mquote b/mquote
+index a64000d..fa8e4a4 100755
+--- a/mquote
++++ b/mquote
+@@ -7,6 +7,6 @@
+
+ printf '%s wrote:\n' "$from"
+ mshow -R "$1" |
+- sed -n '/^-- $/!p;//q' | # strip signature
++ sed -n '/^-- $/,$!p' | # strip signature
+ sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' | # strip empty lines
+ sed 's/^/> /' # prefix with >
+--
+2.14.1
+