Received: by mail.netbsd.org (Postfix, from userid 605) id 3AD0985EC5; Thu, 31 Mar 2016 16:12:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BC9CA85F29 for ; Thu, 31 Mar 2016 16:12:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id YJP9cGyQ79qf for ; Thu, 31 Mar 2016 16:12:52 +0000 (UTC) Received: from cvs.NetBSD.org (unknown [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 60CBB84CF6 for ; Thu, 31 Mar 2016 16:12:52 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5EFFAFBBA; Thu, 31 Mar 2016 16:12:52 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 31 Mar 2016 12:12:52 -0400 From: "Christos Zoulas" Subject: CVS commit: src/bin/sh To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20160331161252.5EFFAFBBA@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Christos Zoulas" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: christos Date: Thu Mar 31 16:12:52 UTC 2016 Modified Files: src/bin/sh: parser.c Log Message: 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@) To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114 src/bin/sh/parser.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.