Skip to content

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

@georgmittendorfer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageTeam needs to triage and take a first look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions