From owner-freebsd-questions Tue Sep 25 10: 5:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 7D67537B419 for ; Tue, 25 Sep 2001 10:02:57 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.11.4/8.11.4) id f8PGslB12522; Tue, 25 Sep 2001 11:54:47 -0500 (CDT) (envelope-from dan) Date: Tue, 25 Sep 2001 11:54:47 -0500 From: Dan Nelson To: Bill Schoolcraft Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Shell argument limits at $9 ?? Message-ID: <20010925115446.A28233@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Sep 25), Bill Schoolcraft said: > In a script I'm working on called "testit" it calls for echoing the > arguments entered. This issue seems to reveal itself as follows when > I execute the following. > > testit a b c d e f g h i j k l m > > and then I go to echo $9 and it shows "i" but when I echo $10 it > shows "a0" and $11 shows "a1" apparently in hex. No; it's simply taking the first digit as the variable name, printing its contents, then continuing on with the letter "0" (or "1"). This is by design; if you need to access past the 9th argument, use brace syntax: ${10} -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message