[llvm-bugs] [Bug 36746] New: Allow 'quit' to take an exit code

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 14 13:45:37 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=36746

            Bug ID: 36746
           Summary: Allow 'quit' to take an exit code
           Product: lldb
           Version: 6.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: alblue at apple.com
                CC: llvm-bugs at lists.llvm.org

When running lldb, it is not possible to return an exit code from the process
using the 'quit' command:

(lldb) quit 1
$ echo $?
0

Note that a workaround is to directly call os._exit(1) (since sys.exit is
apparently caught by the interpreter to prevent accidental exiting)

(lldb) script os._exit(1)
$ echo $?
1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180314/2391d745/attachment.html>


More information about the llvm-bugs mailing list