Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jwilk
· 3y ago · 0 comments
Or, more simply, $((i + 1)).
And it's not only bash; it's feature of POSIX shell.
Comments
[–]
shrewm
3y ago
Or as they did in ancient times $[i+1]
[–]
jwilk
OP
3y ago
>
The old format $[expression] is deprecated and will be removed in upcoming versions of bash.