Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Don't forget the ! reserved word exists (node ype NNO...
details: https://anonhg.NetBSD.org/src/rev/1ccc0ede0a24
branches: trunk
changeset: 353404:1ccc0ede0a24
user: kre <kre%NetBSD.org@localhost>
date: Wed May 03 21:31:03 2017 +0000
description:
Don't forget the ! reserved word exists (node ype NNOT) when displaying
"jobs" output (or other places where the cmd string is shown - like
when reporting status when a background job completes.)
Without this fix, try
! sleep 5 &
jobs
wait
and try not to wonder at the '???" that appears instead of "! sleep 5"
diffstat:
bin/sh/jobs.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 872c7e523d4d -r 1ccc0ede0a24 bin/sh/jobs.c
--- a/bin/sh/jobs.c Wed May 03 21:28:00 2017 +0000
+++ b/bin/sh/jobs.c Wed May 03 21:31:03 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jobs.c,v 1.80 2017/04/29 15:14:28 kre Exp $ */
+/* $NetBSD: jobs.c,v 1.81 2017/05/03 21:31:03 kre Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: jobs.c,v 1.80 2017/04/29 15:14:28 kre Exp $");
+__RCSID("$NetBSD: jobs.c,v 1.81 2017/05/03 21:31:03 kre Exp $");
#endif
#endif /* not lint */
@@ -1275,6 +1275,10 @@
cmdputs(" || ");
cmdtxt(n->nbinary.ch2);
break;
+ case NNOT:
+ cmdputs("! ");
+ cmdtxt(n->nnot.com);
+ break;
case NPIPE:
for (lp = n->npipe.cmdlist ; lp ; lp = lp->next) {
cmdtxt(lp->n);
Home |
Main Index |
Thread Index |
Old Index