|
| From: | Poor Yorick |
| Subject: | undo local variable with unset |
| Date: | Mon, 05 Jan 2015 13:14:53 -0700 |
| User-agent: | Roundcube Webmail/1.0.2 |
versions:
unlocal () {
unset -v "$@"
}
f0 () {
local i
i=3
unset -v i
f1
i=9
}
f1 () {
local i
i=3
unlocal i
i=9
}
i=5
--
Yorick
| [Prev in Thread] | Current Thread | [Next in Thread] |