[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Edward Ribeiro resolved ZOOKEEPER-2009.
---------------------------------------
    Resolution: Duplicate

Another duplicate of ZOOKEEPER-1897 

> 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.3.4#6332)

Reply via email to