[
https://issues.apache.org/jira/browse/ZOOKEEPER-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14096798#comment-14096798
]
Simon Cooper commented on ZOOKEEPER-2009:
-----------------------------------------
Oops, duplicate of ZOOKEEPER-2004...
> 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
> Labels: regression
>
> 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)