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: Kerin Millar
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 19:24:45 +0000

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.

-- 
Kerin Millar



reply via email to

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