summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRex Dieter <rdieter@math.unl.edu>2015-09-16 10:09:32 -0500
committerRex Dieter <rdieter@math.unl.edu>2015-09-16 10:09:32 -0500
commit80fd2bc6879be9ac595ecbb4803f916c7d3afa96 (patch)
tree84035d7a3f5e1c1ae6314ebcc5e403564ede5f5f
parentb45d91da777d0809f8b9f87e99c858558b13b0e1 (diff)
xdg-email: bashism: relies on bash's echo in run_thunderbird() (BR91990)
-rw-r--r--ChangeLog1
-rw-r--r--scripts/xdg-email.in8
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 84401ac..5df821c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
* xdg-icon-resource: does not support filenames with spaces (BR91758)
* xdg-open: Add support for multi-word $BROWSER commands (BR91989)
* xdg-open shell script contains bash code (BR86028)
+ * xdg-email: bashism: relies on bash's echo in run_thunderbird() (BR91990)
2015-07-15 Rex Dieter <rdieter@fedoraproject.org>
* better for other (non-gnome) GVfs-based desktops, from Yaakov Selkowitz <yselkowi@redhat.com>
diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in
index 02aea60..5492254 100644
--- a/scripts/xdg-email.in
+++ b/scripts/xdg-email.in
@@ -43,12 +43,12 @@ run_thunderbird()
fi
MAILTO=$(echo "$MAILTO" | sed 's/&/\n/g')
- TO=$(echo -e $(echo "$MAILTO" | grep '^to=' | sed 's/^to=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }'))
- CC=$(echo -e $(echo "$MAILTO" | grep '^cc=' | sed 's/^cc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }'))
- BCC=$(echo -e $(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }'))
+ TO=$(/bin/echo -e $(echo "$MAILTO" | grep '^to=' | sed 's/^to=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }'))
+ CC=$(/bin/echo -e $(echo "$MAILTO" | grep '^cc=' | sed 's/^cc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }'))
+ BCC=$(/bin/echo -e $(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }'))
SUBJECT=$(echo "$MAILTO" | grep '^subject=' | tail -n 1)
BODY=$(echo "$MAILTO" | grep '^body=' | tail -n 1)
- ATTACH=$(echo -e $(echo "$MAILTO" | grep '^attach=' | sed 's/^attach=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }' | sed 's/,$//'))
+ ATTACH=$(/bin/echo -e $(echo "$MAILTO" | grep '^attach=' | sed 's/^attach=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }' | sed 's/,$//'))
if [ -z "$TO" ] ; then
NEWMAILTO=