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/09/12 15:52:34 UTC

[jira] [Commented] (ZOOKEEPER-2009) zkCli does not execute command passed as arguments

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131547#comment-14131547 ] 

Simon Cooper commented on ZOOKEEPER-2009:
-----------------------------------------

And 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)