SyntaxFix
Write A Post
Hire A Developer
Questions
As has been said, using unset is different with arrays as well
$ foo=(4 5 6) $ foo[2]= $ echo ${#foo[*]} 3 $ unset foo[2] $ echo ${#foo[*]} 2