diff options
author | Bill Nottingham <notting@redhat.com> | 2005-12-02 18:46:19 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-12-02 18:46:19 +0000 |
commit | fd51358febed754193d2d569f171b050c9ef43e3 (patch) | |
tree | 31fcde0113cd9488a3dd69436c23fe9a1fa17be5 | |
parent | 962accd81476ed3111d3d69473e375835e3b418f (diff) | |
download | initscripts-fd51358febed754193d2d569f171b050c9ef43e3.tar initscripts-fd51358febed754193d2d569f171b050c9ef43e3.tar.gz initscripts-fd51358febed754193d2d569f171b050c9ef43e3.tar.bz2 initscripts-fd51358febed754193d2d569f171b050c9ef43e3.tar.xz initscripts-fd51358febed754193d2d569f171b050c9ef43e3.zip |
quote environment variables (#174825)
-rwxr-xr-x | service | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |