diff --git a/aider/commands.py b/aider/commands.py index 6af8e92d4..1b26168ce 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -383,9 +383,8 @@ class Commands: "Run a shell command and optionally add the output to the chat" combined_output = None try: - parsed_args = shlex.split(args) result = subprocess.run( - parsed_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, shell=True + args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, shell=True ) combined_output = result.stdout except Exception as e: