"When side effects happen is implementation-defined. In other words, it is up to the particular version of awk."
:/ $ awk 'BEGIN{a=5; a = a++ + ++a; print a}' 12 :/ $ which awk /system/bin/awk :/ $ awk --version awk version 20240728