script files (.sc) do not strip multiline shebang #2901
Labels
bug
Something isn't working
missing feature
Something should have been implemented, but wasn't.
scripting
Issues tied to *.sc script inputs.
Version(s)
1.3.1
Describe the bug
If a script file (
.sc
) has a multiline shebang, then only the first line is stripped. Meaning the rest of the shebang is parsed as code by the Scala Compiler, leading to errors.To Reproduce
make a file
shebangTest.sc
with the following content, and then run it withscala-cli run shebangTest.sc
you should get errors like so:
Expected behaviour
no errors, because the shebang should be stripped by scala-cli when wrapping the script source
The text was updated successfully, but these errors were encountered: