1a=A 2f() { 3 local a 4 # the above line unsets $a 5 echo "A2:'$a'" 6 unset a 7 echo "A3:'$a'" 8} 9echo "A1:'$a'" 10f 11echo "A4:'$a'" 12