Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Script execution is aborted when line with comment is found

Closed
#1,189 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java, spring-boot
Domain
cli

Research direction

Start by reproducing the regression with shell:>script --file test.script, comparing a script containing only help with one beginning with // test. Trace the script execution path to see how comment lines are handled, then verify that commands after a leading comment execute as they did in Spring Shell 3.4.0.

Written by the indexing model from the issue text.

Description

status/need-triage

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):

help

File test.script that doesn't work (prints nothing):

// test
help
Dominant language
Java
Stars
826
Forks
405
Avg merge
6d 9h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-shell

All issues in spring-projects/spring-shell

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.