bug-bash
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
COMPREPLY as a nameref to a readonly associative array
From
:
Grisha Levit
Subject
:
COMPREPLY as a nameref to a readonly associative array
Date
:
Fri, 24 Feb 2017 18:57:36 -0500
It's possible to change any readonly associative array to the indexed array (''):
$ declare -rA var=([foo]=bar)
$ f() { declare -ng COMPREPLY=var; }
$ compgen -F f .
bash: compgen: warning: -F option may not work as you expect
$ declare -p var
declare -ar var=([0]="")
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
COMPREPLY as a nameref to a readonly associative array
,
Grisha Levit
<=
Re: COMPREPLY as a nameref to a readonly associative array
,
Chet Ramey
,
2017/02/25
Prev by Date:
COMP_WORDS, namerefs and readonly variables
Next by Date:
Re: $* vs ${ARRAY[*]} differences in some parameter expansions
Previous by thread:
COMP_WORDS, namerefs and readonly variables
Next by thread:
Re: COMPREPLY as a nameref to a readonly associative array
Index(es):
Date
Thread