You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Simon Cooper (JIRA)" <ji...@apache.org> on 2014/08/14 11:40:12 UTC
[jira] [Created] (ZOOKEEPER-2009) zkCli does not execute command
passed as arguments
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)