We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e9954f commit 4119ddfCopy full SHA for 4119ddf
docs/operating-system/Shell.md
@@ -262,7 +262,7 @@ echo $length2 #输出:5
262
echo ${array[2]} #输出:3
263
unset array[1]# 删除下标为1的元素也就是删除第二个元素
264
for i in ${array[@]};do echo $i ;done # 遍历数组,输出: 1 3 4 5
265
-unset arr_number; # 删除数组中的所有元素
+unset array; # 删除数组中的所有元素
266
for i in ${array[@]};do echo $i ;done # 遍历数组,数组元素为空,没有任何输出内容
267
```
268
0 commit comments