mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
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:
parent
87fb6c8fbb
commit
b2eed01051
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ class Commands:
|
||||||
try:
|
try:
|
||||||
parsed_args = shlex.split(args)
|
parsed_args = shlex.split(args)
|
||||||
result = subprocess.run(
|
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
|
combined_output = result.stdout
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue