From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 11 Mar 2003 19:14:54 +0300 From: Alexey Tourbin To: devel@altlinux.ru Message-ID: <20030311161454.GA8418@solemn.turbinal.org> Mail-Followup-To: devel@altlinux.ru References: <20030310155940.GK26812@master.altlinux.ru> <18sUgH-1Rt-00@fire.neural.ru> <20030311135657.GA2403@solemn.turbinal.org> <200303111625.29656.legion@altlinux.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <200303111625.29656.legion@altlinux.ru> Subject: [devel] Re: =?koi8-r?B?+sHXydPJzc/T1MkgzsEg08vS?= =?koi8-r?B?ydDUz9fZxSDR2tnLySDXIM3Jzskt08nT1MXNxQ==?= [JT] Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Tue, Mar 11, 2003 at 04:25:29PM +0300, Alexey Gladkov wrote: > > Более того, стандартный шелл вовсе не продвинут, и даже такие > > вещи, как массивы, приходится программировать в духе > а чем вам не нравится такое создание массива: > #!/bin/bash > declare -a ARR > declare -i I=0 > ARR[0]="zzz" > ARR[1]="aaa" > ARR[2]="qqq" > > for (( I=0 ; $I < 3 ; I=$I+1 )) ; do > echo ${ARR[$I]} > done > > echo ${ARR[@]} Это расширения, заимствованные из продвинутых шеллов. The C shell (47.5), awk (33.11), the Korn shell, and some other UNIX command interpreters have built-in array support. The standard Bourne shell doesn't, though its command line is a sort-of array that you can store with the set (44.19) command - and get stored values through $1, $2, etc. http://www.eyetap.org/ece385/oreilly/unix/upt/ch45_34.htm --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+bgt+fBKgtDjnu0YRAsXtAJ4+lV7vTIDxqEXW9X34O3a7atfzDACbBEux x7Pc561KHGsn+D6OX5dwqX8= =OnVy -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--