Summary
After upgrading to spring shell version 3.4.1 scripts starting with a comment (//) are not executed anymore. Version 3.4.0 does not have that problem.
System
Linux: 6.16.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.16.9-1 (2025-09-27) x86_64 GNU/Linux
Java version: openjdk version "21.0.9-ea" 2025-10-21
Spring boot version: 3.5.6
Spring shell version: 3.4.1
Status quo:
After upgrading to spring shell version 3.4.1 scripts starting with a comment (//) are not executed anymore.
Wanted behavior:
Even if a script starts with a comment the following lines should be executed.
Reproduce:
Run shell:>script --file test.script interactively.
File test.script that works (prints help text):
File test.script that doesn't work (prints nothing):
Summary
After upgrading to spring shell version
3.4.1scripts starting with a comment (//) are not executed anymore. Version3.4.0does not have that problem.System
Linux:
6.16.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.16.9-1 (2025-09-27) x86_64 GNU/LinuxJava version:
openjdk version "21.0.9-ea" 2025-10-21Spring boot version:
3.5.6Spring shell version:
3.4.1Status quo:
After upgrading to spring shell version 3.4.1 scripts starting with a comment (
//) are not executed anymore.Wanted behavior:
Even if a script starts with a comment the following lines should be executed.
Reproduce:
Run
shell:>script --file test.scriptinteractively.File
test.scriptthat works (prints help text):File
test.scriptthat doesn't work (prints nothing):