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