Module Name:    src
Committed By:   martin
Date:           Tue Mar  1 21:10:40 UTC 2016

Modified Files:
        src/bin/sh: main.c

Log Message:
Fix wrong condition in previous causing bogus 'Use "exit" to leave
shell.' messages (from kre)


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/bin/sh/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/main.c
diff -u src/bin/sh/main.c:1.61 src/bin/sh/main.c:1.62
--- src/bin/sh/main.c:1.61	Mon Feb 29 23:51:36 2016
+++ src/bin/sh/main.c	Tue Mar  1 21:10:40 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.61 2016/02/29 23:51:36 christos Exp $	*/
+/*	$NetBSD: main.c,v 1.62 2016/03/01 21:10:40 martin Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 19
 #if 0
 static char sccsid[] = "@(#)main.c	8.7 (Berkeley) 7/19/95";
 #else
-__RCSID("$NetBSD: main.c,v 1.61 2016/02/29 23:51:36 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.62 2016/03/01 21:10:40 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -279,7 +279,7 @@ cmdloop(int top)
 			if (nflag)
 				break;
 			if (!stoppedjobs()) {
-				if (iflag && !Iflag)
+				if (!iflag || !Iflag)
 					break;
 				out2str("\nUse \"exit\" to leave shell.\n");
 			}

Reply via email to