Dávid Paksy created ZOOKEEPER-5021:
--------------------------------------
Summary: zkCli.sh needs "Ctrl-D" twice to exit
Key: ZOOKEEPER-5021
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-5021
Project: ZooKeeper
Issue Type: Task
Components: java client
Affects Versions: 3.9.5
Reporter: Dávid Paksy
As found by [~ctubbsii]:
Closing the input stream for a terminal by pressing "Ctrl-D" should
automatically exit the interactive shell, but the bin/zkCli.sh does
not exit, but does disable JLine support, leaving you at a prompt-less
terminal. Pressing "Ctrl-D" a second time exited correctly, and so did
entering "quit" (without JLine support enabled). I would consider this
a bug in the interactive ZK shell, and should be treated like a
"quit". I believe this may have worked in previous versions, but that
may have been using an older version of JLine. Also, I think "exit"
should also be added as an alias for "quit", because that's a very
common command to exit a shell.
[https://lists.apache.org/thread/tt4kh23fn7w380blssvnvo7ms8sjkv50]
This is most probably caused by the JLine library upgrade to 3.x:
https://issues.apache.org/jira/browse/ZOOKEEPER-3938
--
This message was sent by Atlassian Jira
(v8.20.10#820010)