bug-bash
[Top][All Lists]
Advanced

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

Re: Precedence of "C operators" and "bash operators"


From: Chet Ramey
Subject: Re: Precedence of "C operators" and "bash operators"
Date: Sat, 18 Dec 2010 22:45:28 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2

On 12/18/10 11:22 AM, 12bric wrote:
> 
> Bash 4-1 manual indicates 
>      - "The operators and their precedence, associativity, and values are
> the same as in the C language" (pp. 27).
>      - the precedence of - and + operators is different then the precedence
> of ! and ~.
> 
> But in the book "C a reference manual" (Harbison & Steele), the four
> operators + - ! ~ have the same precedence.
> 
> What's wrong ?

Thanks for the report.  There are indeed some problems with the treatment
of unary + and - along with the ! and ~ operators.  These will be fixed
in the next release.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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