1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

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>
This commit is contained in:
Maxim Sobolev 2001-11-26 13:00:50 +00:00
parent b18b8c855e
commit 3d90271529
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50565
2 changed files with 3 additions and 4 deletions

View File

@ -8,7 +8,7 @@
#
PORTNAME= javavmwrapper
PORTVERSION= 1.1
PORTVERSION= 1.2
CATEGORIES= java
MASTER_SITES= # none
DISTFILES= # none

View File

@ -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