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:
committed by
Christian Brabandt
parent
55f9e2bef9
commit
87947a9a76
21
runtime/syntax/testdir/input/sh_ksh_array.sh
Executable file
21
runtime/syntax/testdir/input/sh_ksh_array.sh
Executable 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
|
Reference in New Issue
Block a user