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.

Chet

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

Reply via email to