TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
9.83k stars 771 forks source link

Problems with `--shell` | `-s` #397

Closed gwpl closed 10 months ago

gwpl commented 11 months ago

pressing "E" , does not execute, instead I am inside my custom prompt of my shell.

my suspect is that os.system(...) is too simple, as taking contactenated , string and probably we should use something like:

import subprocess
subprocess.call(['command', 'arg1', 'arg2'])

Potentially related bugs:

TheR1D commented 10 months ago

Closing this issue due to its age and the absence of similar reports. But feel free to re-open it.