Skip to content

script compiler options can cause warnings when starting REPL #11424

@philwalk

Description

@philwalk

Compiler version

    Scala compiler version 3.0.0-M4-bin-SNAPSHOT-git-668e9a5 -- Copyright 2002-2021, LAMP/EPFL

Minimized code

The -save option should not also pass to the REPL:

SCALA_OPTS="-save" scala

Output

$ SCALA_OPTS="-save" bin/scala
Starting scala3 REPL...
bad option '-save' was ignored

Expectation

-save and -compile-only options should only be seen by scripting

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions