blob: b0948c81f1d9fa7e7a40e07bf933e26f23665918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|