Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local _i=0 in bash declares _i as string #17

Open
tthk opened this issue Apr 9, 2019 · 0 comments
Open

local _i=0 in bash declares _i as string #17

tthk opened this issue Apr 9, 2019 · 0 comments

Comments

@tthk
Copy link

tthk commented Apr 9, 2019

Noticed that in bash, your code:
local _i=0
then later
_i=$i+1
ends up with:
_i=0+1+1+1
Intended code for bash should be (not tested on other shells):
local -i _i=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant