Skip to content

Commit

Permalink
switch to shlex for argument splitting. This fixes issues open-s4c#9
Browse files Browse the repository at this point in the history
…and open-s4c#23.
  • Loading branch information
aaronbog committed May 20, 2024
1 parent 17451b9 commit f3e72d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchkit/shell/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sys
import tempfile
from typing import Optional
from shlex import split

from benchkit.utils.types import Command, Environment, PathType, SplitCommand

Expand All @@ -26,7 +27,7 @@ def get_args(command: Command) -> SplitCommand:
SplitCommand: the split command.
"""
if isinstance(command, str):
arguments = command.split()
arguments = split(command)
else:
arguments = command
return arguments
Expand Down

0 comments on commit f3e72d1

Please sign in to comment.