From 21e97689bc894fde2b3fac205b39927bb3f30b1a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 3 Jun 2020 13:52:14 -0400 Subject: [PATCH] Fix handling of complex embedded args If pulling from argv, it has already been shell split. Use shlex to join to correctly requote anything that needs quoting. --- confluent_client/bin/confetty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index 25e2cd6c..c5bbb519 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -912,7 +912,7 @@ def main(): do_command("start /nodes/%s/console/session" % session_node, netserver) doexit = True elif shellargs: - command = " ".join(shellargs) + command = shlex.join(shellargs) do_command(command, netserver) quitconfetty(fullexit=True, fixterm=False)