diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-11-26 21:00:50 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-11-26 21:00:50 +0800 |
commit | dc2f61310f1dadea6fc04a8b6af259c8497e3114 (patch) | |
tree | 70d4cada3fa5af8090ffd2791f779f44c6371125 /java | |
parent | 332b0512241110e1dba3b45d108001380aea46d1 (diff) | |
download | freebsd-ports-gnome-dc2f61310f1dadea6fc04a8b6af259c8497e3114.tar.gz freebsd-ports-gnome-dc2f61310f1dadea6fc04a8b6af259c8497e3114.tar.zst freebsd-ports-gnome-dc2f61310f1dadea6fc04a8b6af259c8497e3114.zip |
Use "$@" instead of "$*" to pass parameters to a subshell. This ensures that
parameters with spaces are passed correctly.
PR: 32191
Submitted by: Ben Suffolk <ben.suffolk@orange.co.uk>
Diffstat (limited to 'java')
-rw-r--r-- | java/javavmwrapper/Makefile | 2 | ||||
-rw-r--r-- | java/javavmwrapper/src/javavmwrapper.sh | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/java/javavmwrapper/Makefile b/java/javavmwrapper/Makefile index 19e023ed0476..2df0c9dc8af3 100644 --- a/java/javavmwrapper/Makefile +++ b/java/javavmwrapper/Makefile @@ -8,7 +8,7 @@ # PORTNAME= javavmwrapper -PORTVERSION= 1.1 +PORTVERSION= 1.2 CATEGORIES= java MASTER_SITES= # none DISTFILES= # none diff --git a/java/javavmwrapper/src/javavmwrapper.sh b/java/javavmwrapper/src/javavmwrapper.sh index 16e9a235b9f5..b82d3699afdf 100644 --- a/java/javavmwrapper/src/javavmwrapper.sh +++ b/java/javavmwrapper/src/javavmwrapper.sh @@ -19,7 +19,6 @@ # # MAINTAINER= sobomax@FreeBSD.org -ARGS="${*}" PREFIX="%%PREFIX%%" CONF="${PREFIX}/etc/javavms" IAM=`basename "${0}"` @@ -102,7 +101,7 @@ unset JAVA_HOME # First check if JAVAVM environment variable is set if [ x"${JAVAVM}" != x"" ]; then - tryrunVM "${JAVAVM}" "${ARGS}" + tryrunVM "${JAVAVM}" "${@}" fi # Then try to make sure that ${CONF} exists @@ -116,7 +115,7 @@ VMS=`/usr/bin/sed 's|#.*||' < "${CONF}" | uniq` # Finally try to run one of the ${VMS} for JAVAVM in ${VMS}; do - tryrunVM "${JAVAVM}" "${ARGS}"; + tryrunVM "${JAVAVM}" "${@}"; done echo "${IAM}: error: no suitable JavaVMs found" >&2 |