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)