help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: whats wrong with (( a = 8 , a > 4 && a -= 2 || a-- )) , bash: ((: a


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 21:05:50 +0100

On Thu, Mar 23, 2023, 20:24 Kerin Millar <kfm@plushkava.net> wrote:

> On Thu, 23 Mar 2023 21:36:38 +0530
> Bipul kumar <bipul.opensource@gmail.com> wrote:
>
> > And i don't think it's bug
>
> Having looked at the C specification and realised that the logical AND
> operator has a greater precedence than the compound assignment operator, I
> must now concur that it cannot be a bug.
>

aa .. gotta let me think
thanks ..

-- 
> Kerin Millar
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]