Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11959
| From | shawn wilson <ag4ve.us@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | bug with getting an array index or ... |
| Date | 2015-12-06 08:38 -0500 |
| Message-ID | <mailman.1511.1449411163.31583.bug-bash@gnu.org> (permalink) |
declare -a array=(aaaaaaaa bbbbbbbb cccccccc); echo "${!array[@]}";
echo "${!array[@]:-}"
also, "${!array[@]:foo}" and :+foo and :-foo are all empty as well -
I'm pretty sure this is not intended?
Back to gnu.bash.bug | Previous | Next | Find similar
bug with getting an array index or ... shawn wilson <ag4ve.us@gmail.com> - 2015-12-06 08:38 -0500
csiph-web