aider: Add shell=True to subprocess.run in cmd_run.

# Aider chat conversation:

USER: add `shell=True` to subprocess.run in cmd_run

ASSISTANT: To add `shell=True` to the `subprocess.run` call in the `cmd_run` method, we need to modify the `aider/commands.py` file. Here's the change:

<source>python
aider/commands.py
<<<<<<< HEAD
            result = subprocess.run(
                parsed_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True
            )
=======
            result = subprocess.run(
                parsed_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, shell=True
            )
>>>>>>> updated
</source>
This commit is contained in:
Alexander Kjeldaas 2023-10-01 19:49:58 +02:00
parent 87fb6c8fbb
commit b2eed01051

View file

@ -385,7 +385,7 @@ class Commands:
try:
parsed_args = shlex.split(args)
result = subprocess.run(
parsed_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True
parsed_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, shell=True
)
combined_output = result.stdout
except Exception as e: