From 3a2d7a21b114c14ee93d29bbc7b16affec251ad5 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Sun, 19 Jul 2020 17:32:07 +0200 Subject: [PATCH] Fix quotes-in-commandsubstitution problem with well-placed shlex.quote --- cibuildwheel/bashlex_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cibuildwheel/bashlex_eval.py b/cibuildwheel/bashlex_eval.py index 57791b2c..e09752f2 100644 --- a/cibuildwheel/bashlex_eval.py +++ b/cibuildwheel/bashlex_eval.py @@ -97,7 +97,7 @@ def evaluate_nodes_as_compound_command(nodes: Sequence[bashlex.ast.node], contex def evaluate_nodes_as_simple_command(nodes: List[bashlex.ast.node], context: NodeExecutionContext): - words = [evaluate_node(part, context=context) for part in nodes] + words = [shlex.quote(evaluate_node(part, context=context)) for part in nodes] command = ' '.join(words) return context.executor(command, context.environment)