Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fab23
on Dec 29, 2022
|
parent
|
context
|
favorite
| on:
Bash retry function with exponential backoff
It does also matter where the plus signs are:
$ i=0 $ echo $((++i)) 1 $ echo $((i++)) 1 $ echo $((++i)) 3 $
((++i)) does add 1 before the command is run, and ((i++)) does add 1 after the command is run.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: