summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-01-29 15:14:30 +0000
committerRüdiger Timm <rt@openoffice.org>2008-01-29 15:14:30 +0000
commite0ec48376d8af9b5738c417e8fa59653d2f67fea (patch)
tree4ac05b6b079d00b7f07924d236a89888f6c3aa0b /shell
parentc9c62727e40912af866fc14d5f34f2642f6dbdec (diff)
INTEGRATION: CWS vcl85_SRC680 (1.13.28); FILE MERGED
2008/01/14 09:52:03 obr 1.13.28.1: #b6565805# quote the argument of echo to avoid multiple spaces being merged to one
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/misc/senddoc.sh25
1 files changed, 14 insertions, 11 deletions
diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh
index 2f39cc7951be..ce2b8c338c9c 100644
--- a/shell/source/unix/misc/senddoc.sh
+++ b/shell/source/unix/misc/senddoc.sh
@@ -1,6 +1,9 @@
#!/bin/sh
URI_ENCODE="`dirname $0`/uri-encode"
+echo "$@" > /tmp/log.obr.$$
+echo "$#" >> /tmp/log.obr.$$
+
# tries to locate the executable specified
# as first parameter in the user's path.
which() {
@@ -119,7 +122,7 @@ case `basename "$MAILER" | sed 's/-.*$//'` in
shift
;;
--attach)
- ATTACH=${ATTACH:-}${ATTACH:+,}`echo file://$2 | ${URI_ENCODE}`
+ ATTACH=${ATTACH:-}${ATTACH:+,}`echo "file://$2" | ${URI_ENCODE}`
shift
;;
*)
@@ -253,23 +256,23 @@ case `basename "$MAILER" | sed 's/-.*$//'` in
shift
;;
--cc)
- MAILTO="${MAILTO:-}${MAILTO:+&}cc=`echo $2| ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}cc="`echo "$2" | ${URI_ENCODE}`
shift
;;
--bcc)
- MAILTO="${MAILTO:-}${MAILTO:+&}bcc=`echo $2| ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}bcc="`echo "$2" | ${URI_ENCODE}`
shift
;;
--subject)
- MAILTO="${MAILTO:-}${MAILTO:+&}subject=`echo $2 | ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}subject"=`echo "$2" | ${URI_ENCODE}`
shift
;;
--body)
- MAILTO="${MAILTO:-}${MAILTO:+&}body=`echo $2 | ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}body="`echo "$2" | ${URI_ENCODE}`
shift
;;
--attach)
- MAILTO="${MAILTO:-}${MAILTO:+&}attach=`echo file://$2 | ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}attach="`echo "file://$2" | ${URI_ENCODE}`
shift
;;
*)
@@ -356,23 +359,23 @@ case `basename "$MAILER" | sed 's/-.*$//'` in
shift
;;
--cc)
- MAILTO="${MAILTO:-}${MAILTO:+&}cc=`echo $2| ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}cc="`echo "$2" | ${URI_ENCODE}`
shift
;;
--bcc)
- MAILTO="${MAILTO:-}${MAILTO:+&}bcc=`echo $2| ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}bcc="`echo "$2" | ${URI_ENCODE}`
shift
;;
--subject)
- MAILTO="${MAILTO:-}${MAILTO:+&}subject=`echo $2 | ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}subject="`echo "$2" | ${URI_ENCODE}`
shift
;;
--body)
- MAILTO="${MAILTO:-}${MAILTO:+&}body=`echo $2 | ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}body="`echo "$2" | ${URI_ENCODE}`
shift
;;
--attach)
- MAILTO="${MAILTO:-}${MAILTO:+&}attachment=`echo $2 | ${URI_ENCODE}`"
+ MAILTO="${MAILTO:-}${MAILTO:+&}attachment="`echo "$2" | ${URI_ENCODE}`
shift
;;
*)