about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-08 13:32:43 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-08 13:32:43 +0200
commit55c823f89af1896bcff24281bcd8535640c9de0b (patch)
tree444c0bb5e46d6f60f1da89752b2b6b2b39d313a1
parentf3c6724830cc6100df6a8eebd2db5b6dd814935c (diff)
downloadmblaze-55c823f89af1896bcff24281bcd8535640c9de0b.tar.gz
mblaze-55c823f89af1896bcff24281bcd8535640c9de0b.tar.xz
mblaze-55c823f89af1896bcff24281bcd8535640c9de0b.zip
mquote: needs := for empty strings
-rwxr-xr-xmquote6
1 files changed, 3 insertions, 3 deletions
diff --git a/mquote b/mquote
index 1a68f50..440a3ef 100755
--- a/mquote
+++ b/mquote
@@ -1,9 +1,9 @@
 #!/bin/sh
 # mquote MSG - format MSG as a quotation
 
-: ${from=$(mhdr -d -h x-original-from "$1")}
-: ${from=$(mhdr -d -h from "$1")}
-: ${from=Someone}
+: ${from:=$(mhdr -d -h x-original-from "$1")}
+: ${from:=$(mhdr -d -h from "$1")}
+: ${from:=Someone}
 
 echo "$from wrote:"
 mshow -R "$1" |