0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00
vim/runtime/syntax/testdir/input/sh_ksh_array.sh
Doug Kearns 87947a9a76
runtime(sh): Update syntax, match KornShell compound arrays
closes: #17268

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-05-06 17:59:25 +02:00

22 lines
175 B
Bash
Executable File

#!/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