Add a way to quit the interactive script interpreter from a shell tests. Currently, the only way (that I know) to exit the interactive Lua interpreter is to send a EOF with CTRL-D. I noticed that the embedded Python script interpreter accepts quit (while the regular python interpreter doesn't). I've added a special case to the Lua interpreter to do the same.
Details
Details
- Reviewers
labath - Group Reviewers
Restricted Project - Commits
- rG1728dec255a5: [lldb/Lua] Recognize "quit" as a way to exit the script interpreter.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It seems reasonable. Btw, have you figured out how the embedded python does it? -- I haven't been able to find the code for handling that.
The python interpreter also intercepts os.exit() to avoid terminating the program (it just terminates the python session). I suppose we should do the same with lua's os.exit...
Comment Actions
No, I couldn't find the code either.
The python interpreter also intercepts os.exit() to avoid terminating the program (it just terminates the python session). I suppose we should do the same with lua's os.exit...
Yep, that sounds good.