From a27fb6dae5142a4220549845ef31516757ae6e4a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Apr 2024 13:19:13 +0000 Subject: Use more accurate exit codes in backtick and foreground Signed-off-by: Laurent Bercot --- doc/backtick.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/backtick.html') diff --git a/doc/backtick.html b/doc/backtick.html index 38c02a2..3081407 100644 --- a/doc/backtick.html +++ b/doc/backtick.html @@ -85,8 +85,8 @@ is set to default, and execution proceeds. If the command line can keep running after prog1 crashes or exits nonzero, i.e. if one of the -I, -x -or -D has been given, then backtick also adds the ? variable to the -environment; it then contains an approximation -of prog1's exit code. +environment. If prog1 exited normally, the variable contains its exit +code; otherwise, 256 plus the number of the signal that killed it.

-- cgit v1.2.3