This works:
$ bind 'set enable-bracketed-paste on'; bind -v | grep 'bracketed'
set enable-bracketed-paste on
However, almost any variation of the parameter "on" is not understood by
readline:
$ bind 'set enable-bracketed-paste on .'; bind -v | grep 'bracketed'
set enable-brac
The first release candidate of bash-5.0 is now available with the URLs
ftp://ftp.cwru.edu/pub/bash/bash-5.0-rc1.tar.gz
ftp://ftp.gnu.org/pub/gnu/bash/bash-5.0-rc1.tar.gz
and from the bash-5.0-testing branch in the bash git repository
(http://git.savannah.gnu.org/cgit/bash.git/log/?h=bash-5
On Dez 20 2018, Greg Wooledge wrote:
> The issue you're reporting appears to be present in arithmetic contexts
> in general, not only arrays:
>
> wooledg:~$ echo $((~0))
> bash: /home/wooledg: syntax error: operand expected (error token is
> "/home/wooledg")
This has been fixed in bash 5.0.
>
On Wed, Dec 19, 2018 at 10:31:36PM -0500, Bize Ma wrote:
> It is also interesting that this fails:
>
> var=hello; echo "${var[ ~0]}"
> bash: var: bad array subscript
>
> Isn't `var[0]` valid and equivalent to `var` ?
Yes, but ~0 is not 0.
wooledg:~$ echo $(( ~0))
-1
The issue you're reporting