mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: Correct SEARCH/REPLACE block in aider/utils.py
This commit is contained in:
parent
52d5a7636d
commit
3ccb876434
1 changed files with 0 additions and 2 deletions
|
@ -32,11 +32,9 @@ def run_interactive_command(command):
|
|||
# Check if /bin/sh exists
|
||||
if os.path.exists("/bin/sh"):
|
||||
# Use /bin/sh -c if it exists
|
||||
spawn_command = ["/bin/sh", "-c", command]
|
||||
child = pexpect.spawn("/bin/sh", args=["-c", command], encoding="utf-8")
|
||||
else:
|
||||
# Fall back to the original behavior
|
||||
spawn_command = command
|
||||
child = pexpect.spawn(command, encoding="utf-8")
|
||||
|
||||
# Transfer control to the user, capturing output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue