I am currently struggling understanding a line of an introduction to windows batch scripting:
SET /A errno=0
SET /A ERROR_SOMECOMMAND_NOT_FOUND=2
...
... SET /A errno^|=%ERROR_SOMECOMMAND_NOT_FOUND%
According to this answer the circumflex ^
is an escape character, so we are ending up with errno|=%ERROR_SOMECOMMAND_NOT_FOUND%
. But then what is this code doing?
In the according article the author states that this gives the flexibility to bitwise OR multiple error numbers together.
Ok, but I couldn't find any article about bitwise operations in batch with a line like above...
So please, enlight me a little.