[Top][All Lists]

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

Re: Arithmetic expansion bug.

From: Chet Ramey
Subject: Re: Arithmetic expansion bug.
Date: Sun, 11 Feb 2018 17:31:47 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 2/10/18 2:57 PM, Isaac Marcos wrote:

> There is a bug when expanding this math:
>     $ echo "$((~0))"
>     bash: /home/user: syntax error: operand expected (error token is
> "/home/user")
> It works correctly when an space is added:
>     $ echo "$(( ~0 ))"
>     -1

Thanks for the report. This was fixed back in November, 2016, and the
fix is in the devel version.


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

reply via email to

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