0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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>
This commit is contained in:
Doug Kearns
2025-05-06 17:59:25 +02:00
committed by Christian Brabandt
parent 55f9e2bef9
commit 87947a9a76
4 changed files with 69 additions and 2 deletions

View File

@@ -0,0 +1,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