Hello,
there is an error in the bash documentation:
https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins
In the 'declare' builtin, option '-n', last sentence:
"The nameref attribute cannot be applied to array variables"
is actually wrong: it can be applied to indexed and ass
On Fri, Nov 06, 2020 at 02:07:36PM +0100, Edouard Thiel wrote:
> there is an error in the bash documentation:
> https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins
>
> In the 'declare' builtin, option '-n', last sentence:
> "The nameref attribute cannot be applied to array va
On 11/6/20 8:07 AM, Edouard Thiel wrote:
> Hello,
>
> there is an error in the bash documentation:
> https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins
>
> In the 'declare' builtin, option '-n', last sentence:
> "The nameref attribute cannot be applied to array variables"
>
Le 06/11/2020 à 17:01, Greg Wooledge a écrit :
On Fri, Nov 06, 2020 at 02:07:36PM +0100, Edouard Thiel wrote:
there is an error in the bash documentation:
https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins
In the 'declare' builtin, option '-n', last sentence:
"The na
On 11/6/20 11:53 AM, Edouard Thiel wrote:
>
>
> Le 06/11/2020 à 17:01, Greg Wooledge a écrit :
>> On Fri, Nov 06, 2020 at 02:07:36PM +0100, Edouard Thiel wrote:
>>> there is an error in the bash documentation:
>>> https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins
>>>
>>> In th
Le 06/11/2020 à 18:06, Chet Ramey a écrit :
On 11/6/20 11:53 AM, Edouard Thiel wrote:
This is more clear, and in fact, ok for me (if subscripted means
associative?);
the link above is not up to date.
The same language appears in the "Shell Parameters" section of the manual
at the above link
Readline tests that macro and suppresses software flow control. This is quite
handy: I want software flow control, just not *in bash*, where it is not useful
and I would like C-s to do incremental search instead. With USE_XON_XOFF, it is
inactive in bash and is restored before executing a comman
On 11/6/20 12:21 PM, Edouard Thiel wrote:
>>> By the way, I have seen that the nameref works more or less for functions:
>>> $ foo() { echo "hello" ;}
>>> $ declare -n bar=foo
>>> but the reference has to be dereferenced when calling:
>>> $ ${!bar}
>>> hello
>>>
>>> is it still the case in bash 5?