2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

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.
This commit is contained in:
Jarrod Johnson 2020-06-03 13:52:14 -04:00
parent 8ddcdf625b
commit 21e97689bc

View File

@ -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)