You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by pa...@apache.org on 2016/08/02 21:44:51 UTC

drill git commit: DRILL-4816: Fix sqlline command line parsing (sqlline -f failed to read the query file)

Repository: drill
Updated Branches:
  refs/heads/master 0700c6b10 -> 6f5864cfb


DRILL-4816: Fix sqlline command line parsing (sqlline -f failed to read the query file)

This closes #557


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/6f5864cf
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/6f5864cf
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/6f5864cf

Branch: refs/heads/master
Commit: 6f5864cfbdcdccd67ba8f031126568d8edbf0c42
Parents: 0700c6b
Author: Parth Chandra <pa...@apache.org>
Authored: Tue Aug 2 14:04:41 2016 -0700
Committer: Parth Chandra <pa...@apache.org>
Committed: Tue Aug 2 14:43:16 2016 -0700

----------------------------------------------------------------------
 distribution/src/resources/sqlline | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/6f5864cf/distribution/src/resources/sqlline
----------------------------------------------------------------------
diff --git a/distribution/src/resources/sqlline b/distribution/src/resources/sqlline
index dcdbd61..9f20f0a 100644
--- a/distribution/src/resources/sqlline
+++ b/distribution/src/resources/sqlline
@@ -40,10 +40,10 @@ SLARGS=()
 for (( i=0; i < ${#args[@]}; i++ )); do
   case "${args[i]}" in
   -q|-e)
-      QUERY=$args[i+1]
+      QUERY=${args[i+1]}
       let i=$i+1
       ;;
-  -f) FILE=$args[i+1]
+  -f) FILE=${args[i+1]}
       let i=$i+1
       ;;
    *) SLARGS+=("${args[i]}");;