Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4E402200B59 for ; Mon, 8 Aug 2016 19:44:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4C36A160A91; Mon, 8 Aug 2016 17:44:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B988C160A77 for ; Mon, 8 Aug 2016 19:44:21 +0200 (CEST) Received: (qmail 53384 invoked by uid 500); 8 Aug 2016 17:44:20 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 53343 invoked by uid 99); 8 Aug 2016 17:44:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 17:44:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A446A2C0033 for ; Mon, 8 Aug 2016 17:44:20 +0000 (UTC) Date: Mon, 8 Aug 2016 17:44:20 +0000 (UTC) From: "Abraham Fine (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ZOOKEEPER-2074) Incorrect exit codes for "./zkCli.sh cmd arg" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 08 Aug 2016 17:44:22 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Abraham Fine updated ZOOKEEPER-2074: ------------------------------------ Attachment: ZOOKEEPER-2074_4.patch > Incorrect exit codes for "./zkCli.sh cmd arg" > --------------------------------------------- > > Key: ZOOKEEPER-2074 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2074 > Project: ZooKeeper > Issue Type: Bug > Affects Versions: 3.5.0 > Reporter: Surendra Singh Lilhore > Assignee: Abraham Fine > Priority: Minor > Fix For: 3.5.3, 3.6.0 > > Attachments: ZOOKEEPER-2074_1.patch, ZOOKEEPER-2074_2.patch, ZOOKEEPER-2074_3.patch, ZOOKEEPER-2074_4.patch > > > Linux@hghoulaslx406:/> $ZOOKEEPER_HOME/bin/zkCli.sh create /test "test" > Created /test1 > Linux@hghoulaslx406:/> echo $? > 0 > Linux@hghoulaslx406:/> $ZOOKEEPER_HOME/bin/zkCli.sh create /test "test" > Node already exists: /test1 > Linux@hghoulaslx406:/> echo $? > 0 > Linux@hghoulaslx406:/> $ZOOKEEPER_HOME/bin/zkCli.sh delete /test > Linux@hghoulaslx406:/> echo $? > 0 > Linux@hghoulaslx406:/> $ZOOKEEPER_HOME/bin/zkCli.sh delete /test > Node does not exist: /test1 > Linux@hghoulaslx406:/> echo $? > 0 > Here for failed command it should return exit code 1 -- This message was sent by Atlassian JIRA (v6.3.4#6332)