Skip to content

Commit

Permalink
[fix][cli] Pulsar shell: handle ctrl-d (apache#17204)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi authored Aug 22, 2022
1 parent 95c1778 commit 023c9b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ public List<String> readCommand() {
try {
final String line = reader.readLine().trim();
return substituteVariables(reader.parseLine(line), variables);
} catch (org.jline.reader.UserInterruptException userInterruptException) {
} catch (org.jline.reader.UserInterruptException
| org.jline.reader.EndOfFileException userInterruptException) {
throw new InterruptShellException();
}
};
Expand Down

0 comments on commit 023c9b9

Please sign in to comment.