Skip to content

Commit e21056d

Browse files
committed
Accept -cp alias in bin/scala
Not doing so passes it through to `java`, which does accept it as an alias for -classpath, overwriting the classpath containing the standard library.
1 parent a66eaf3 commit e21056d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/bin/scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ while [[ $# -gt 0 ]]; do
6262
execute_run=true
6363
shift
6464
;;
65-
-classpath)
65+
-cp | -classpath)
6666
CLASS_PATH="$2"
6767
class_path_count+=1
6868
shift

0 commit comments

Comments
 (0)