Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Fix wrong condition in previous causing bogus 'Use "e...
details: https://anonhg.NetBSD.org/src/rev/569df786a6f3
branches: trunk
changeset: 343903:569df786a6f3
user: martin <martin%NetBSD.org@localhost>
date: Tue Mar 01 21:10:40 2016 +0000
description:
Fix wrong condition in previous causing bogus 'Use "exit" to leave
shell.' messages (from kre)
diffstat:
bin/sh/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d5302607f469 -r 569df786a6f3 bin/sh/main.c
--- a/bin/sh/main.c Tue Mar 01 21:09:17 2016 +0000
+++ b/bin/sh/main.c Tue Mar 01 21:10:40 2016 +0000
@@ -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 @@
#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 @@
if (nflag)
break;
if (!stoppedjobs()) {
- if (iflag && !Iflag)
+ if (!iflag || !Iflag)
break;
out2str("\nUse \"exit\" to leave shell.\n");
}
Home |
Main Index |
Thread Index |
Old Index