[fix][cli] Pulsar shell: handle ctrl-d
@@ -395,7 +395,8 @@ public class PulsarShell {
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();
}
};
