Merge pull request #3252 from devriesd/editor-shell-true

subprocess called with shell true
This commit is contained in:
paul-gauthier 2025-02-14 09:15:17 -08:00 committed by GitHub
commit da94cf4aab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: