summaryrefslogtreecommitdiff
path: root/mnv/runtime/syntax/testdir/input/sh_ksh_array.sh
blob: 22806ffc5c8c3e801686a007f3dc3e4b3f2e94b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/ksh

foo=(
  ( 00 01 )
  ( 10 11 )
)

bar=(
  [0]=(
    [0]=00
    [1]=01
  )
  [1]=(
    [0]=10
    [1]=11
  )
)


echo ${foo[1][1]} # => 11
echo ${bar[1][1]} # => 11