about summary refs log tree commit diff
path: root/Src/jobs.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-09-22 13:46:03 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-09-22 13:46:03 +0000
commit58bad19411cce9ee0a0edf3ef93acb475b7e7a79 (patch)
tree94efc673f6464fb2105017ff9d9d993517c9c8da /Src/jobs.c
parentf27036858ae1b2e61b40d0467ba88566dc8863f6 (diff)
downloadzsh-58bad19411cce9ee0a0edf3ef93acb475b7e7a79.tar.gz
zsh-58bad19411cce9ee0a0edf3ef93acb475b7e7a79.tar.xz
zsh-58bad19411cce9ee0a0edf3ef93acb475b7e7a79.zip
19105: Set shout to stderr if interative with no tty
Diffstat (limited to 'Src/jobs.c')
-rw-r--r--Src/jobs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/jobs.c b/Src/jobs.c
index c94f694ee..f7c24ab3f 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -322,8 +322,9 @@ update_job(Job jn)
 	}
     }
 
-    if (shout && !ttyfrozen && !jn->stty_in_env && !zleactive &&
-	job == thisjob && !somestopped && !(jn->stat & STAT_NOSTTY))
+    if (shout && shout != stderr && !ttyfrozen && !jn->stty_in_env &&
+	!zleactive && job == thisjob && !somestopped &&
+	!(jn->stat & STAT_NOSTTY)) 
 	gettyinfo(&shttyinfo);
 
     if (isset(MONITOR)) {