|
From: | alex xmb ratchev |
Subject: | Re: 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:35:00 +0100 |
or one small deeper parsing bug ~ $ (( a = 8 , a > 4 && a -= 2 )) bash: ((: a = 8 , a > 4 && a -= 2 : attempted assignment to non-variable (error token is "-= 2 ") i can only agree to enable such basic functionment greets .. On Thu, Mar 23, 2023, 11:32 alex xmb ratchev <fxmbsw7@gmail.com> wrote: > 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] |