From 55c823f89af1896bcff24281bcd8535640c9de0b Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 8 Aug 2016 13:32:43 +0200 Subject: mquote: needs := for empty strings --- mquote | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mquote') 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" | -- cgit 1.4.1