mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
Merge pull request #3252 from devriesd/editor-shell-true
subprocess called with shell true
This commit is contained in:
commit
da94cf4aab
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ def pipe_editor(input_data="", suffix=None, editor=None):
|
|||
filepath = write_temp_file(input_data, suffix)
|
||||
command_parts = discover_editor(editor)
|
||||
command_parts.append(filepath)
|
||||
subprocess.call(command_parts)
|
||||
subprocess.call(command_parts, shell=True)
|
||||
with open(filepath, "r") as f:
|
||||
output_data = f.read()
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue