Closed owenzhao closed 8 months ago
I'm not sure what a correct solution would be. After some thought the only idea I have is to set a timeout for executing commands in the shell
How about "\\\n;exit\n"? I worked in zsh with "ls abc" with or without ";" at the end.
That's a good solution :)
TTY added ";exit\n" in its code. However, if a command has already ended with ";", a parse error of ";;" is risen and the in shell can't quit.
Since the in shell is not quit, the app calls this api won't get the buffer and the app waits forever.
related function:
Try: "ls abc;" as command.