shell 如何定义空数组

2025-03-12 20:13:41
推荐回答(1个)
回答1:

array=()
echo ${array[*]}

这样就是空的

 

array=(123 456 789)
echo ${array[*]}

这样就是非空