From owner-freebsd-questions Tue Sep 25 10:18:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xfw.transarc.ibm.com (xfw.transarc.ibm.com [192.54.226.51]) by hub.freebsd.org (Postfix) with ESMTP id B982D37B411 for ; Tue, 25 Sep 2001 10:14:47 -0700 (PDT) Received: from mailhost2.transarc.ibm.com (mailhost2.transarc.ibm.com [9.38.192.125]) by xfw.transarc.ibm.com (AIX4.3/UCB 8.7/8.7) with ESMTP id MAA12802; Tue, 25 Sep 2001 12:48:45 -0400 (EDT) Received: from smithfield.transarc.ibm.com (smithfield.transarc.ibm.com [9.38.192.92]) by mailhost2.transarc.ibm.com (8.8.0/8.8.0) with SMTP id MAA14019; Tue, 25 Sep 2001 12:56:51 -0400 (EDT) Date: Tue, 25 Sep 2001 12:56:50 -0400 (EDT) From: Pat Barron To: Bill Schoolcraft Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Shell argument limits at $9 ?? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Tue, 25 Sep 2001, Bill Schoolcraft wrote: > 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. It's not in hex - "echo $10" echoes "$1" followed by "0"; since $1 is set to "a", you get "a0". Same thing with $11. > > How can I set the argument limit higher in the shell environment. > The shell is GNU bash, version 2.04.0(1)-release (i386--freebsd4.2) As far as I know, you can't. Use "shift" to move the arguments over. --Pat. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message