If you run this, you'll notice that loc_var prints as 23. It should
print
as 43.
Looks good to me and works on two environments;
var in function 23, outside 43.
Bash 3.2.17(1)-release (Mac OS X 10.5.6)
Bash 3.2.33(1)-release (Fedora 9)
What version of bash are you using?
---
Chad R Mayfield
[email protected]
GPG Key: 0C9A026F
http://www.planetmayfield.com/
http://www.chadmayfield.com/
http://www.linkedin.com/in/chadmayfield
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/