From 3a2e334759c1d4cdd29f7e5b760a89075f119eba Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sat, 24 Aug 2013 11:51:38 -0400 Subject: [PATCH] sed does not treat \n as a newline. Example: %echo 'f&o&o' | sed 's/&/\n/g' fnono Signed-off-by: Eitan Adler --- scripts/xdg-email | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xdg-email b/scripts/xdg-email index 6ead033..34bf0eb 100755 --- a/scripts/xdg-email +++ b/scripts/xdg-email @@ -395,7 +395,7 @@ run_thunderbird() MAILTO=$(echo "$MAILTO" | sed 's/^/to=/' | sed 's/?/\&/') fi - MAILTO=$(echo "$MAILTO" | sed 's/&/\n/g') + MAILTO=$(echo "$MAILTO" | tr '&' '\n') TO=$(echo "$MAILTO" | grep '^to=' | sed 's/^to=//' | awk '{ printf "%s,",$0 }') CC=$(echo "$MAILTO" | grep '^cc=' | sed 's/^cc=//' | awk '{ printf "%s,",$0 }') BCC=$(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//' | awk '{ printf "%s,",$0 }') -- 1.8.3.4