From 904bb71f3b8984148d07a0c8a731ef4aeafa541e Mon Sep 17 00:00:00 2001 From: Arina Ielchiieva Date: Tue, 13 Nov 2018 19:53:07 +0200 Subject: [PATCH] DRILL-3933: Surround $QUERY variable in double-quotes to avoid asterisk expansion in sqlline script closes #1538 --- distribution/src/resources/sqlline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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