Simon Cooper created ZOOKEEPER-2009:
---------------------------------------

             Summary: zkCli does not execute command passed as arguments
                 Key: ZOOKEEPER-2009
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2009
             Project: ZooKeeper
          Issue Type: Bug
    Affects Versions: 3.4.6
            Reporter: Simon Cooper
            Priority: Minor


In 3.4.5, zkCli executed commands passed on the command line. This command 
would create the {{/test}} znode and exit, with a non-zero exit code if the 
command failed:

{code}
$ ./zkCli.sh create /test null
{code}

This is no longer the case in 3.4.6 - the command is not executed, but zkCli 
still runs & exits with a zero exit code.

The interim workaround in bash is to use here documents:

{code}
$ ./zkCli.sh <<EOF
create /test null
EOF
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to