Fix wrong condition in previous causing bogus 'Use "exit" to leave

shell.' messages (from kre)
This commit is contained in:
martin 2016-03-01 21:10:40 +00:00
parent 2f04f4ac92
commit 5902f7d619
1 changed files with 3 additions and 3 deletions

View File

@ -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, 1993\
#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");
}