> Bash Version: 2.05b > Patch Level: 0 > Release Status: release > > Description: > It would be very useful to have a shell option that displays the exit > code of each command when it terminates.
Try PS4=$'-$?\n+ ' for the `bash -x' case. You can use PROMPT_COMMAND for interactive shells. The leading `-' is to reduce confusion when bash replicates the first character of PS4 to indicate multiple levels of subshells. Replace it with any character you like. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://tiswww.tis.case.edu/~chet/ _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash