local1.tests 122 B

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