Re: Arithmetic expansion bug.

2018-02-11 Thread Chet Ramey
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

Arithmetic expansion bug.

2018-02-10 Thread Isaac Marcos
Description: 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 Bash version: $ echo "$BASH_VERSION"