修正错误

pull/36/head
skywind3000 6 years ago
parent f3b8d108af
commit ed1142abeb

@ -299,7 +299,7 @@ text=$(IFS=/; echo "${array[*]}") # 用斜杠链接数组并赋值给变量
A=( foo bar "a b c" 42 ) # 数组定义
B=("${A[@]:1:2}") # 数组切片B=( bar "a b c" )
C=("${A[@]:1:2}") # 数组切片C=( bar "a b c" 42 )
C=("${A[@]:1}") # 数组切片C=( bar "a b c" 42 )
echo "${B[@]}" # bar a b c
echo "${B[1]}" # a b c
echo "${C[@]}" # bar a b c 42

Loading…
Cancel
Save