From 3257f6b8d561cdf8805744d2a988b4bf414249fc Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 12 Jul 2009 15:09:56 +0000 Subject: 27134: Close SHTTY on exec. 27135: POSIX_JOBS leaves MONITOR on in subshell and doesn't save parent job table. --- Doc/Zsh/options.yo | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'Doc/Zsh/options.yo') diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 7a2c732d1..74b5c8f86 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -1280,10 +1280,26 @@ pindex(NO_POSIX_JOBS) pindex(NOPOSIXJOBS) cindex(bg, output in POSIX format) cindex(fg, output in POSIX format) +cindex(job control, in subshell) +cindex(jobs, output in subshell) item(tt(POSIX_JOBS) )( -When putting jobs in the background or foreground with tt(bg) or tt(fg), -just print the text of the job as required by POSIX, -rather than the full information that would be output by tt(jobs). +This option makes job control more compliant with the POSIX standard. + +When the option is not set, the tt(MONITOR) option is unset on entry to +subshells, so that job control is no longer active. When the option is +set, the tt(MONITOR) option and job control remain active in the +subshell, but note that the subshell has no access to jobs in the parent +shell. + +When the option is not set, jobs put in the background or foreground +with tt(bg) or tt(fg) are displayed with the same information that would +be reported by tt(jobs). When the option is set, only the text is +printed. The output from tt(jobs) itself is not affected by the option. + +When the option is not set, job information from the parent +shell is saved for output within a subshell (for example, within a +pipeline). When the option is set, the output of tt(jobs) is empty +until a job is started within the subshell. ) enditem() -- cgit 1.4.1