summaryrefslogtreecommitdiff
path: root/mail/thunderbird-esr/files/patch-mail_app_mozilla.in
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2004-12-29 03:28:51 +0000
committerMichael Johnson <ahze@FreeBSD.org>2004-12-29 03:28:51 +0000
commit6d3f2a711b1258b940e3444b0f9698ddf6396605 (patch)
tree330458bf62dc56fc0ea47b9ade38ec0ce6c1d3ae /mail/thunderbird-esr/files/patch-mail_app_mozilla.in
parent- Update pkg-descr to better reflect firefox (diff)
- Fix expr usage for 4.x since expr on 4.x
is not POSIX compliant. [1] Submitted by: girgen [1]
Notes
Notes: svn path=/head/; revision=125415
Diffstat (limited to 'mail/thunderbird-esr/files/patch-mail_app_mozilla.in')
-rw-r--r--mail/thunderbird-esr/files/patch-mail_app_mozilla.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/thunderbird-esr/files/patch-mail_app_mozilla.in b/mail/thunderbird-esr/files/patch-mail_app_mozilla.in
index aec8e60c4bcb..a296ae83e7ae 100644
--- a/mail/thunderbird-esr/files/patch-mail_app_mozilla.in
+++ b/mail/thunderbird-esr/files/patch-mail_app_mozilla.in
@@ -5,14 +5,14 @@
#???: needs check if othersopt begin with -* ?
-if [ `expr "${_optLast}" : '.*:/.*'` -eq 0 -a \( -f "${_optLast}" -o -d "${_optLast}" \) ]; then
-+if [ `expr -- "${_optLast}" : '.*:/.*'` -eq 0 -a \( -f "${_optLast}" -o -d "${_optLast}" \) ]; then
++if [ `expr X"${_optLast}" : 'X.*:/.*'` -eq 0 -a \( -f "${_optLast}" -o -d "${_optLast}" \) ]; then
# Last argument seems to be a local file/directory
# Check, if it is absolutely specified (ie. /home/foo/file vs. ./file)
# If it is just "relatively" (./file) specified, make it absolutely
- [ `expr "${_optLast}" : '/.*'` -eq 0 ] && _optLast="file://`pwd`/${_optLast}"
-elif [ `expr "${_optLast}" : '.*:/.*'` -gt 0 -o -n "${_optOthers}" ]; then #???? like before...
-+ [ `expr -- "${_optLast}" : '/.*'` -eq 0 ] && _optLast="file://`pwd`/${_optLast}"
-+elif [ `expr -- "${_optLast}" : '.*:/.*'` -gt 0 -o -n "${_optOthers}" ]; then #???? like before...
++ [ `expr X"${_optLast}" : 'X/.*'` -eq 0 ] && _optLast="file://`pwd`/${_optLast}"
++elif [ `expr X"${_optLast}" : 'X.*:/.*'` -gt 0 -o -n "${_optOthers}" ]; then #???? like before...
_NEW_WINDOW=1
fi
################################################################ Parse Arguments