Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Use "exit" to leave shell.
I suspect the marked (>>>) change below is what's causing my screen to
be flooded with 'Use "exit" to leave shell.'
-bch
===================================================================
RCS file: /ftp/cvs/cvsroot/src/bin/sh/main.c,v
rcsdiff: /ftp/cvs/cvsroot/src/bin/sh/main.c,v: warning:
Unknown phrases like `commitid ...;' are present.
retrieving revision 1.60
retrieving revision 1.61
diff -u -p -r1.60 -r1.61
--- src/bin/sh/main.c 2016/02/27 18:34:12 1.60
+++ src/bin/sh/main.c 2016/02/29 23:51:36 1.61
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.60 2016/02/27 18:34:12 christos
Exp $ */
+/* $NetBSD: main.c,v 1.61 2016/02/29 23:51:36 christos
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.60 2016/02/27 18:34:12 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.61 2016/02/29 23:51:36 christos Exp $");
#endif
#endif /* not lint */
@@ -268,6 +268,7 @@ cmdloop(int top)
showjobs(out2, SHOW_CHANGED);
chkmail(0);
flushout(&errout);
+ nflag = 0;
}
n = parsecmd(inter);
TRACE(("cmdloop: "); showtree(n));
@@ -275,8 +276,10 @@ cmdloop(int top)
if (n == NEOF) {
if (!top || numeof >= 50)
break;
+ if (nflag)
+ break;
if (!stoppedjobs()) {
>>> - if (!Iflag)
>>> + if (iflag && !Iflag)
break;
out2str("\nUse \"exit\" to
leave shell.\n");
}
Home |
Main Index |
Thread Index |
Old Index