You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/11/15 23:51:51 UTC

[GitHub] asfgit closed pull request #1538: DRILL-3933: Surround $QUERY variable in double-quotes to avoid asterisk expansion in sqlline script

asfgit closed pull request #1538: DRILL-3933: Surround $QUERY variable in double-quotes to avoid asterisk expansion in sqlline script
URL: https://github.com/apache/drill/pull/1538
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/distribution/src/resources/sqlline b/distribution/src/resources/sqlline
index 1db00839ba9..03ca2d580de 100644
--- a/distribution/src/resources/sqlline
+++ b/distribution/src/resources/sqlline
@@ -91,7 +91,7 @@ if [ -n "$_DRILL_WRAPPER_" ]; then
 fi
 
 if [ -n "$QUERY" ] ; then
-  echo $QUERY | exec $CMD "${SLARGS[@]}"
+  echo "$QUERY" | exec $CMD "${SLARGS[@]}"
 elif [ -n "$FILE" ] ; then
   exec $CMD "${SLARGS[@]}" --run=$FILE
 else


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services