From 5385c4a599add4b9a11144cebcc9bbb45bfe9254 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Wed, 19 Nov 2014 18:43:57 +0100 Subject: [PATCH] Related: #1162198 - update documentation of POSIX_JOBS in the zshoptions.1 man page --- zsh-5.0.7-wait-for-exited.patch | 22 +++++++++++++++++++++- zsh.spec | 5 ++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/zsh-5.0.7-wait-for-exited.patch b/zsh-5.0.7-wait-for-exited.patch index e92993f..a15391d 100644 --- a/zsh-5.0.7-wait-for-exited.patch +++ b/zsh-5.0.7-wait-for-exited.patch @@ -15,12 +15,13 @@ Signed-off-by: Kamil Dudka --- Doc/Zsh/builtins.yo | 16 ++++++ Doc/Zsh/options.yo | 8 +-- + Doc/zshoptions.1 | 8 +-- Src/exec.c | 2 - Src/init.c | 1 - Src/jobs.c | 138 ++++++++++++++++++++++++++++++++++++++++++++-------- Src/linklist.c | 4 ++ Src/signals.c | 14 +++--- - 7 files changed, 148 insertions(+), 35 deletions(-) + 8 files changed, 152 insertions(+), 39 deletions(-) diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 46f40cc..edc335e 100644 @@ -68,6 +69,25 @@ index 068a253..452b258 100644 ) enditem() +diff --git a/Doc/zshoptions.1 b/Doc/zshoptions.1 +index cc0bd7e..038e259 100644 +--- a/Doc/zshoptions.1 ++++ b/Doc/zshoptions.1 +@@ -892,10 +892,10 @@ shell is saved for output within a subshell (for example, within a + pipeline)\&. When the option is set, the output of \fBjobs\fP is empty + until a job is started within the subshell\&. + .PP +-When the option is set, it becomes possible to use the \fBwait\fP builtin to +-wait for the last job started in the background (as given by \fB$!\fP) even +-if that job has already exited\&. This works even if the option is turned +-on temporarily around the use of the \fBwait\fP builtin\&. ++In previous versions of the shell, it was necessary to enable ++\fBPOSIX_JOBS\fP in order for the builtin command \fBwait\fP to return the ++status of background jobs that had already exited\&. This is no longer ++the case\&. + .RE + .PP + .SS "Prompting" diff --git a/Src/exec.c b/Src/exec.c index d0fadd6..a9c4688 100644 --- a/Src/exec.c diff --git a/zsh.spec b/zsh.spec index d52ba45..dc62ce3 100644 --- a/zsh.spec +++ b/zsh.spec @@ -3,7 +3,7 @@ Summary: Powerful interactive shell Name: zsh Version: 5.0.7 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: http://zsh.sourceforge.net/ Group: System Environment/Shells @@ -190,6 +190,9 @@ fi %doc Doc/*.html %changelog +* Wed Nov 19 2014 Kamil Dudka - 5.0.7-4 +- update documentation of POSIX_JOBS in the zshoptions.1 man page (#1162198) + * Tue Nov 18 2014 Kamil Dudka - 5.0.7-3 - replace an incorrect comment in /etc/zshenv (#1164313)