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
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"