On Jul 06 2022, Steffen Nurpmeso wrote:

>   $ bash -c 'I=10; echo $((1++I)); echo $I'
>   bash: line 1: 1++I: syntax error in expression (error token is "++I")
>   $ bash -c 'I=10; echo $((1++1)); echo $I'
>   10
>
>   $ bash -c 'I=10;echo "<$(( +10+++I ))>"'
>   <21>

A C compiler would parse all those expressions as post-increment applied
to a non-lvalue.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to