Skip to content

Conversation

@letmaik
Copy link
Member

@letmaik letmaik commented Jul 17, 2019

((x++)) will fail if x is 0, as ((..)) fails if the result is 0.
Using ((++x)) avoids this case.

Reference: https://askubuntu.com/questions/385528/how-to-increment-a-variable-in-bash#comment573516_385532

Without the fix the Process Explorer wouldn't show any numbers for the remote host when using ssh remote.

((x++)) will fail if x is 0, as ((..)) fails if the result is 0.
Using ((++x)) avoids this case.
Copy link
Contributor

@RMacfarlane RMacfarlane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @letmaik!

@RMacfarlane RMacfarlane merged commit b11b93e into microsoft:master Jul 17, 2019
@RMacfarlane RMacfarlane added this to the July 2019 milestone Jul 19, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants