Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/bin/sh Pull up following revision(s) (requested by kre in...
details: https://anonhg.NetBSD.org/src/rev/9a1c5f02556e
branches: netbsd-7
changeset: 799960:9a1c5f02556e
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sat Aug 27 15:20:48 2016 +0000
description:
Pull up following revision(s) (requested by kre in ticket #1212):
bin/sh/parser.c: revision 1.114 via patch
PR bin/51027 - fix the parsing of references to shell parameters
when given without braces (ie: $2 etc). Only the first 9 shell
parameters ($1 .. $9) and the special parameter ($0) can be
referenced this way, $10 is ${1}0 not ${10}. Make it so.
This bug brought to notice by Sven Mascheck's web pages which
discuss (among other things) the history of this (and other ash
based) shells .. see http://www.in-ulm.de/~mascheck/ (from kre@)
diffstat:
bin/sh/parser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c54fe045df5e -r 9a1c5f02556e bin/sh/parser.c
--- a/bin/sh/parser.c Sat Aug 27 15:19:09 2016 +0000
+++ b/bin/sh/parser.c Sat Aug 27 15:20:48 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.c,v 1.90 2014/01/01 19:50:44 christos Exp $ */
+/* $NetBSD: parser.c,v 1.90.4.1 2016/08/27 15:20:48 bouyer Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
#else
-__RCSID("$NetBSD: parser.c,v 1.90 2014/01/01 19:50:44 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.90.4.1 2016/08/27 15:20:48 bouyer Exp $");
#endif
#endif /* not lint */
@@ -1330,7 +1330,7 @@
do {
USTPUTC(c, out);
c = pgetc();
- } while (is_digit(c));
+ } while (subtype != VSNORMAL && is_digit(c));
}
else if (is_special(c)) {
USTPUTC(c, out);
Home |
Main Index |
Thread Index |
Old Index