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
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
can be applied to indexed and associative arrays
(since bash 4.3+)
(tested for bash version : 4.3.48(1)-release (x86_64-pc-linux-gnu))
it can even be applied to functions, except that for calling, explicit
dereference must be given.
Cheers,
Edouard Thiel
--
Professeur Edouard THIEL