From e21056db849cfac013121f5ed8ee5dbc2483bf47 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Wed, 10 Feb 2021 12:56:42 +1000 Subject: [PATCH] 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. --- dist/bin/scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/bin/scala b/dist/bin/scala index 3c522a082d3b..2258d54dedc4 100755 --- a/dist/bin/scala +++ b/dist/bin/scala @@ -62,7 +62,7 @@ while [[ $# -gt 0 ]]; do execute_run=true shift ;; - -classpath) + -cp | -classpath) CLASS_PATH="$2" class_path_count+=1 shift