Was "Is the number of elements in an array tracked internally?" in help-b...@gnu.org.
The for loop would assign multiple words to names for each loop iteration. On Sat, Apr 26, 2025 at 1:24 PM Koichi Murase <myoga.mur...@gmail.com> wrote: > > 2025年4月27日(日) 1:40 Lawrence Velázquez <v...@larryv.me>: > > On Sat, Apr 26, 2025, at 11:38 AM, Zachary Santer wrote: > > > On Sat, Apr 26, 2025 at 11:26 AM Zachary Santer <zsan...@gmail.com> wrote: > > >> > > >> for arg4 arg5 arg6 in "${args4__args5__args6[@]}"; do > > >> [...] > > >> done > > > > > > On the other hand, "in" could no longer appear as *name* in this > > > formulation of the for loop. I rescind my not really a feature > > > request. > > > > FWIW zsh provides this form, with the restriction that "in" is only > > recognized as a name if it appears immediately after "for". > > I remember that there was a similar discussion: > > https://lists.gnu.org/archive/html/bug-bash/2021-08/msg00098.html > https://lists.gnu.org/archive/html/bug-bash/2021-08/msg00099.html You can add me to the list of people who would have uses for this in bash. Zack