On Sunday, January 13, 2013 06:02:26 PM Michał Górny wrote: > On Sun, 13 Jan 2013 07:36:59 -0800 > Alec Warner <anta...@gentoo.org> wrote: > > local -i ret > > ? > > Looks good. I didn't even know bash has something like that. >
Useless use of -i is usually unhelpful. In Bash (but not all shells), it's slower, because it's still just storing the value as a string and marking the variable with the integer attribute which modifies the way certain assignments behave. It doesn't do any harm in this specific case, but there are a lot of gotchas with -i to be aware of if you're going to use it. -- Dan Douglas
signature.asc
Description: This is a digitally signed message part.