It would be great if the default bash prompt on debian systems included
the return code of the last-executed pipeline.
Visible return codes are useful for debugging, and for problem
reports. They can also expose some failures that otherwise wouldn't
be obvious from the stdout/stderr of the process alone.
Visible return codes are also useful in shell interactions that may
eventually become part of a script, because they encourage thinking
about the shell programmatically (even if it is as simple as
considering "if then" conditionals).
The patch below provides this change.
Thanks for maintaining bash in debian!
Regards,