pgier opened a new issue, #19213: URL: https://github.com/apache/pulsar/issues/19213
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Motivation It's common for command line shells to interpret the EOF (CTRL-D) character as a quit command. For example `bash` and `python`. The current behavior of pulsar-shell is to print an exception and then quit. ``` Exception in thread "main" org.jline.reader.EndOfFileException at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:657) at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:468) at org.apache.pulsar.shell.PulsarShell$1.readLine(PulsarShell.java:280) at org.apache.pulsar.shell.PulsarShell.lambda$run$4(PulsarShell.java:398) at org.apache.pulsar.shell.PulsarShell.run(PulsarShell.java:410) at org.apache.pulsar.shell.PulsarShell.run(PulsarShell.java:221) at org.apache.pulsar.shell.PulsarShell.main(PulsarShell.java:210) Goodbye! ``` Since pulsar-shell is already doing the correct thing by quitting, this should just be done cleanly without the exception. ### Solution Catch the EOF character and quit with no error. ### Alternatives _No response_ ### Anything else? _No response_ ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
