Skip to content

Empty line in script prints all available commands (in 4.0.1) #1315

Closed

Description

@georgmittendorfer

Description

A script gets executed in interactive mode that has an empty line at the end. When the empty line is executed all commands are printed:

[... correct output before ...]
Available sub-commands for '':
  [...]
  history - Display or save the history of previously run commands
  [...]
  version - Show version info
  [...]
  script - Execute commands from a script file
  [...]
  clear - Clear the terminal screen
  [...]
  help - Display help about available commands
  [...]
  quit - Exit the shell
  [...]

I removed my commands to not leak them from the output.

Update: this also happens with an empty line in the middle of the script. The same output appears then the rest of the script gets executed.

Wanted behavior

The empty line should be ignored.

Version

spring boot 4.0.2
spring shell 4.0.1
Linux

Activity

  1. changed the title [-]Empty line at end of script prints all available commands (in 4.0.1)[/-] [+]Empty line in script prints all available commands (in 4.0.1)[/+] on Feb 8, 2026
  2. czpilar commented on Feb 10, 2026

    @czpilar
    Contributor

    Fixed in PR #1318

  3. added and removed
    status/need-triageTeam needs to triage and take a first look
    on Mar 25, 2026
  4. added this to the 4.0.2 milestone on Mar 25, 2026
  5. 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