Bash-4.3 distribution sources and documentation
This commit is contained in:
parent
4539d736f1
commit
ac50fbac37
497 changed files with 129395 additions and 87598 deletions
24
tests/array15.sub
Normal file
24
tests/array15.sub
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# fixes for make_internal_declare not handling integer attribute for arrays
|
||||
declare -ai -g foo=(1 2 xx 3)
|
||||
echo "${foo[@]}"
|
||||
|
||||
unset foo
|
||||
declare -ai -g foo='(1 2 xx 3)'
|
||||
echo "${foo[@]}"
|
||||
|
||||
unset foo
|
||||
declare -ia -g foo=(1 2 xx 3)
|
||||
echo "${foo[@]}"
|
||||
|
||||
unset foo
|
||||
declare -ia -g foo='(1 2 xx 3)'
|
||||
echo "${foo[@]}"
|
||||
|
||||
unset foo
|
||||
func()
|
||||
{
|
||||
declare -ai -g foo=(1 2 xx 3)
|
||||
}
|
||||
|
||||
func
|
||||
echo "${foo[@]}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue