3 ms·
It's explained here: https://unix.stackexchange.com/a/32251 https://unix.stackexchange.com/a/32251 From help let: Exit Status: If the last ARG evaluat
by bogantech 4y ago
It's explained here: https://unix.stackexchange.com/a/32251 https://unix.stackexchange.com/a/32251
From help let:
Exit Status:
If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise..
Since var++ is post-increment, I guess the last argument does evaluate to zero. Subtle...