阅读背景:

使用没有索引的数组名可以获得Bash中的第一个数组元素,对吗?

来源:互联网 

GNU Bash 4.4 seems forgiving when accessing the first element or only element of an array by using just the array name or accessing a variable with array syntax. Both ${var[0]} and ${var[@]} return "Value" when the variable var='Value'.GNU Bash 4.4 seems forgiving when accessing the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: