File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 244
244
# Match -Xa.b.c=d to translate to -Da.b.c=d as a java option
245
245
-X* )
246
246
val=${1: 2}
247
- if expr " $val " : ' .*[.]' > /dev/null; then
247
+ if expr -- " $val " : ' .*[.]' > /dev/null; then
248
248
java_args=(" ${java_args[@]} " " -Djruby.${val} " )
249
249
else
250
250
ruby_args=(" ${ruby_args[@]} " " -X${val} " )
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ progname=`basename "$0"`
26
26
27
27
while [ -h " $PRG " ] ; do
28
28
ls=` ls -ld " $PRG " `
29
- link=` expr " $ls " : ' .*-> \(.*\)$' `
30
- if expr " $link " : ' .*/.*' > /dev/null; then
31
- if expr " $link " : ' /' > /dev/null; then
29
+ link=` expr -- " $ls " : ' .*-> \(.*\)$' `
30
+ if expr -- " $link " : ' .*/.*' > /dev/null; then
31
+ if expr -- " $link " : ' /' > /dev/null; then
32
32
PRG=" $link "
33
33
else
34
34
PRG=" ` dirname ${PRG} ` /${link} "
202
202
# Match -Xa.b.c=d to translate to -Da.b.c=d as a java option
203
203
-X* )
204
204
val=${1: 2}
205
- if expr " $val " : ' .*[.]' > /dev/null; then
205
+ if expr -- " $val " : ' .*[.]' > /dev/null; then
206
206
java_args=" ${java_args} -Djruby.${val} "
207
207
else
208
208
ruby_args=" ${ruby_args} -X${val} "
You can’t perform that action at this time.
0 commit comments