Skip to content

does not pass on exit status to shell #227

@ikanobori

Description

@ikanobori

I'm forwarding bug #689431 from Debian [1]:

"Eike discovered that bpython does not cleanly pass on the script's exit status to the parent shell in interactive mode.

Example:

  1. Call bpython.
  2. Type exit(120)
  3. Check with echo $?

Result:

$ bpython; echo $?
# enter exit(120)
0

Expected result:

$ bpython; echo $?
# enter exit(120)
120"

And indeed, the vanilla Python interpreter exits with 120 in that case.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689431


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions