You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/11/03 12:15:20 UTC

[iotdb] branch fix_client created (now 3f7d187)

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a change to branch fix_client
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 3f7d187  update AbstractCli

This branch includes the following new commits:

     new 3f7d187  update AbstractCli

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: update AbstractCli

Posted by qi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch fix_client
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 3f7d187a836f3db147447f3391d83f5c34e4261e
Author: qiaojialin <64...@qq.com>
AuthorDate: Tue Nov 3 20:14:56 2020 +0800

    update AbstractCli
---
 cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java b/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java
index fc2c72e..ffc8c39 100644
--- a/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java
+++ b/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java
@@ -344,12 +344,11 @@ public abstract class AbstractCli {
       return args;
     } else {
       StringBuilder executeCommand = new StringBuilder();
-      /*for (int j = index + 1; j < args.length; j++) {
+      for (int j = index + 1; j < args.length; j++) {
         executeCommand.append(args[j]).append(" ");
-      }*/
-      executeCommand.append(args[index + 1]);
+      }
       // remove last space
-      //executeCommand.deleteCharAt(executeCommand.length() - 1);
+      executeCommand.deleteCharAt(executeCommand.length() - 1);
       // some bashes may not remove quotes of parameters automatically, remove them in that case
       if (executeCommand.charAt(0) == '\'' || executeCommand.charAt(0) == '\"') {
         executeCommand.deleteCharAt(0);
@@ -361,7 +360,6 @@ public abstract class AbstractCli {
 
       execute = executeCommand.toString();
       hasExecuteSQL = true;
-      // remove "-e" and it's parameter
       args = Arrays.copyOfRange(args, 0, index);
       return args;
     }