mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
Merge pull request #272 from alexanderkjeldaas/ak/run-shell
fix: /run (cd ..; ls) should work
This commit is contained in:
commit
44aa5c6d63
1 changed files with 1 additions and 2 deletions
|
@ -388,9 +388,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
|
||||
args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, shell=True
|
||||
)
|
||||
combined_output = result.stdout
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue