Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Background jobs and notification (stdout vs stderr)



Vincent Lefevre wrote:
> OK. I think that the zsh man pages should mention where all the data
> output by zsh are sent (to stdout, stderr, the tty...).

Index: Doc/Zsh/jobs.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/jobs.yo,v
retrieving revision 1.3
diff -u -r1.3 jobs.yo
--- Doc/Zsh/jobs.yo	10 Jul 2001 08:59:18 -0000	1.3
+++ Doc/Zsh/jobs.yo	2 Jul 2004 13:53:54 -0000
@@ -8,7 +8,7 @@
 It keeps a table of current jobs, printed by the tt(jobs)
 command, and assigns them small integer numbers.
 When a job is started asynchronously with `tt(&)',
-the shell prints a line which looks like:
+the shell prints a line to standard error which looks like:
 
 example([1] 1234)
 
@@ -70,6 +70,8 @@
 It normally informs you whenever a job becomes blocked so that
 no further progress is possible.  If the tt(NOTIFY) option is not set,
 it waits until just before it prints a prompt before it informs you.
+All such notifications are sent directly to the terminal, not to
+the standard output or standard error.
 
 When the monitor mode is on, each background job that completes
 triggers any trap set for tt(CHLD).

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author