variable i not local #3

Closed
tstgruby opened this Issue Mar 14, 2012 · 2 comments

Comments

Projects
None yet
2 participants

Hi.

In function redis-client the variable "i" is not marked local, manipulating the value of it globally.

Nice endless loop:

for ((i=0; i < 33; ++i)); do
  redis-client 6 SADD xzy bla # <- resets i
done

Cheers.

caquino pushed a commit that referenced this issue Mar 14, 2012

Define the variable "i" as local in the redis-bash-lib. Closes issue #3.
Define the variable "i" as local in the redis-bash-lib. Closes issue #3
as reported by the user tstgruby. Thanks
Owner

caquino commented Mar 14, 2012

tstgruby, could you please test it?

Thanks

@caquino caquino closed this Mar 14, 2012

Thanks, this fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment