From fd51358febed754193d2d569f171b050c9ef43e3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 2 Dec 2005 18:46:19 +0000 Subject: quote environment variables (#174825) --- service | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'service') diff --git a/service b/service index 4a5992b1..e1925525 100755 --- a/service +++ b/service @@ -37,7 +37,7 @@ while [ $# -gt 0 ]; do ;; *) if [ -x "${SERVICEDIR}/${SERVICE}" ]; then - env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" status + env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" status fi ;; esac @@ -46,8 +46,8 @@ while [ $# -gt 0 ]; do elif [ $# -eq 2 -a "${2}" = "--full-restart" ]; then SERVICE="${1}" if [ -x "${SERVICEDIR}/${SERVICE}" ]; then - env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" stop - env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" start + env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" stop + env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" start exit $? fi elif [ -z "${SERVICE}" ]; then @@ -61,7 +61,7 @@ while [ $# -gt 0 ]; do done if [ -x "${SERVICEDIR}/${SERVICE}" ]; then - env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${OPTIONS} + env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS} else echo $"${SERVICE}: unrecognized service" >&2 exit 1 -- cgit v1.2.1