1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

users/15219: PRINTEXITVALUE if terminated by signal

This commit is contained in:
Peter Stephenson 2010-07-31 22:03:41 +00:00
parent 5659426c2a
commit fc7ad5cc1c
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2010-07-31 Peter Stephenson <p.w.stephenson@ntlworld.com>
* users/15219: Src/jobs.c: print exit status if PRINTEXITVALUE
and terminated by signal.
* 28111: Src/jobs.c: always print exit status if PRINTEXITVALUE
is set.
@ -13460,5 +13463,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5042 $
* $Revision: 1.5043 $
*****************************************************

View file

@ -873,6 +873,10 @@ printjob(Job jn, int lng, int synch)
sflag = 1;
if (job == thisjob && sig == SIGINT)
doputnl = 1;
if (isset(PRINTEXITVALUE) && isset(SHINSTDIN)) {
sflag = 1;
skip_print = 0;
}
} else if (WIFSTOPPED(pn->status)) {
sig = WSTOPSIG(pn->status);
if ((int)strlen(sigmsg(sig)) > len)