Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 19:12:54 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Bill Schoolcraft <bill@wiliweld.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Shell argument limits at $9 ??
Message-ID:  <20010925191254.A45263@student.uu.se>
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
On Tue, Sep 25, 2001 at 08:43:53AM -0700, Bill Schoolcraft wrote:
> Hello,
> 
> 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.

Not in hex. That is merely the result of the $1 part of $10 being
replaced by "a" (the first argument) and followed by the "0" of $10.

> 
> [question]
> 
> 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)

Use ${10} ,  ${11} , etc. to use arguments 10, 11 etc.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se


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?20010925191254.A45263>