Hello,
I have a /bin/sh question.
I have a script names script.sh and it takes one parameter. The script looks like this...
The issue is that when I execute the script like this...
My Java application is actually passed "foobar" NOT "foo{bar}"...
The "{" and "}" character are being removed.
Any ideas?
I have a /bin/sh question.
I have a script names script.sh and it takes one parameter. The script looks like this...
Code:
#!/bin/sh
JAVA_EXECUTABLE=java
if [ -n "$JAVA_HOME" ]
then
JAVA_EXECUTABLE=$JAVA_HOME/bin/java
fi
BASEDIR=$(dirname "$0")
"$JAVA_EXECUTABLE" -jar "${BASEDIR}"/application-jar-with-dependencies.jar "$@"
The issue is that when I execute the script like this...
Code:
# ./script.sh foo{bar}
My Java application is actually passed "foobar" NOT "foo{bar}"...
The "{" and "}" character are being removed.
Any ideas?