From cb468501c91edfec060cd0e771e5173762feb5e4 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 22 Aug 2014 09:12:23 -0700 Subject: 33042: $? and $pipestatus report 128+signal number for stopped jobs --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 3a761b1e2..1f2a9daad 100644 --- a/NEWS +++ b/NEWS @@ -84,6 +84,13 @@ Changes since 5.0.0 longer array is trimmed whereas the :^^ operator repeats the shorter array enough to match the longer array. +- The value of $? when a job becomes stopped is now the signal number plus + 128, for compatibility with other shells. Note that different operating + systems use different values e.g. for SIGTSTP, so it is not possible in + portable scripts to detect stopped jobs by comparing to a fixed number. + Also, the value of $pipestatus is now updated when a job stops, not just + when it exits. + Changes between 4.2 and 5.0.0 ----------------------------- -- cgit 1.4.1