|
From: | alex xmb ratchev |
Subject: | whats wrong with (( a = 8 , a > 4 && a -= 2 || a-- )) , bash: ((: a = 8 , a > 4 && a -= 2 || a-- : attempted assignment to non-variable (error token is "-= 2 || a-- ") |
Date: | Thu, 23 Mar 2023 11:32:33 +0100 |
i remember doing && (( code maybe i didnt '=' in action there (( a = 8 , a > 4 && a -= 2 || a-- )) bash: ((: a = 8 , a > 4 && a -= 2 || a-- : attempted assignment to non-variable (error token is "-= 2 || a-- ") (( a = 8 , a > 4 && a-- && a-- || a-- )) works a=6 .. i suppose this is a (( lex bug where u didnt include || && in op for = is it ? :)) greets
[Prev in Thread] | Current Thread | [Next in Thread] |