Overview
To evaluate something and also store it in a variable in the most concise way possible
The extra set of Parentheses causes the statement to return it’s value as well as storing it in the variable, in this case $a
. This is called variable squeezing.
This is especially useful in while
loops. The example below is taken from a script which I wrote to listen for a machine to come back from a reboot.