Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1535

ZK Shell/Cli re-executes last command on exit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.4.6, 3.5.0
    • scripts
    • zookeeper-3.4.3 release

    Description

      In the ZK 3.4.3 release's version of zkCli.sh, the last command that was executed is re-executed when you ctrl+d out of the shell. In the snippet below, ls is executed, and then ctrl+d is triggered (inserted below to illustrate), the output from ls appears again, due to the command being re-run.

      [zk: zookeeper.example.com:2181(CONNECTED) 0] ls /blah
      [foo]
      [zk: zookeeper.example.com:2181(CONNECTED) 1] <ctrl+d> [foo]
      $
      

      Attachments

        1. ZOOKEEPER-1535-1.patch
          0.5 kB
          Edward Ribeiro
        2. ZOOKEEPER-1535-2.patch
          0.5 kB
          Edward Ribeiro

        Issue Links

          Activity

            People

              eribeiro Edward Ribeiro
              stuhood Stu Hood
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: