Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 11:54:47 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Bill Schoolcraft <bill@wiliweld.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Shell argument limits at $9 ??
Message-ID:  <20010925115446.A28233@dan.emsphone.com>
In-Reply-To: <Pine.GSO.4.33.0109250836490.18238-100000@corten8.billschoolcraft.com>
References:  <Pine.GSO.4.33.0109250836490.18238-100000@corten8.billschoolcraft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010925115446.A28233>