about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2017-08-21 21:34:14 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-22 18:21:28 +0200
commitdfe09a7c5e3a2273f963d53432ef1686b34547db (patch)
tree2fb1930e4d3b805cedcb87cacdebcdb76cbbac2a
parent6f99ef55a8bd75d99882078b50e3c7665106c514 (diff)
downloadmblaze-dfe09a7c5e3a2273f963d53432ef1686b34547db.tar.gz
mblaze-dfe09a7c5e3a2273f963d53432ef1686b34547db.tar.xz
mblaze-dfe09a7c5e3a2273f963d53432ef1686b34547db.zip
mquote: make sed expression to strip signature work with busybox sed
Closes: #74 [via git-merge-pr]
-rwxr-xr-xmquote2
1 files changed, 1 insertions, 1 deletions
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 >