File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ IFS=" "
3
4
# Try to autodetect real location of the script
4
5
5
6
if [ -z " $PROG_HOME " ] ; then
@@ -31,7 +32,6 @@ source "$PROG_HOME/bin/common"
31
32
32
33
CLASS_PATH=" .$PSEP$DOTTY_LIB$PSEP$SCALA_LIB "
33
34
34
-
35
35
addResidual () {
36
36
residual_args+=(" $1 " )
37
37
}
@@ -66,14 +66,18 @@ case $key in
66
66
esac
67
67
done
68
68
69
- CLASS_PATH=" ${classpath_args[@]} $CLASS_PATH "
70
-
71
69
if [ $run_repl == true ]; then
72
70
echo " Starting dotty REPL"
73
- echo " $PROG_HOME /bin/dotc -classpath $CLASS_PATH -repl ${residual_args[@]} "
71
+ if [ -z $classpath_args ]; then
72
+ classpath_args=" "
73
+ else
74
+ classpath_args=" -classpath \" ${classpath_args[*]} \" "
75
+ fi
76
+ eval " $PROG_HOME /bin/dotc $classpath_args -repl ${residual_args[@]} "
74
77
elif [ -z $residual_args ]; then
75
78
echo " Starting dotty REPL..."
76
79
eval " $PROG_HOME /bin/dotc -repl"
77
80
else
81
+ CLASS_PATH=" ${classpath_args[*]} $CLASS_PATH "
78
82
eval exec " \" $JAVACMD \" " " $DEBUG " " -classpath \" $CLASS_PATH \" " " ${residual_args[@]} "
79
83
fi
You can’t perform that action at this time.
0 commit comments