Skip to content

Script execution stops on line with comment (in 4.x) #1316

Closed

Description

@georgmittendorfer

Description

If a line starting with // is executed the script stops and the following lines are not executed anymore.

Current behavior

Running a script in interactive mode:

some command
// commented out command
another command

another command is not executed anymore

Wanted behavior

Only commented line should be ignored. Script should continue with next line.

References

This seems to be similar to #1189

Version

spring boot 4.0.2
spring shell 4.0.1
Linux

Activity

  1. czpilar commented on Feb 10, 2026

    @czpilar
    Contributor

    Fixed in PR #1318

  2. added and removed
    status/need-triageTeam needs to triage and take a first look
    on Mar 25, 2026
  3. added this to the 4.0.2 milestone on Mar 25, 2026
  4. added a commit that references this issue on Mar 25, 2026
    29ddc11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions