On Thu, Jun 27, 2024 at 1:08 AM Oğuz <oguzismailuy...@gmail.com> wrote:
>
> Why not extend the arithmetic expansion syntax to allow generating multiple 
> results when subscripting indexed arrays? Like `${a[1; 2; 4]}', `${a[3..5; 
> 7]}', `${a[1..10..3]}', etc.

Doing this, you lose the ability to provide the list of indices you're
interested in in the form of an array. This list couldn't be arbitrary
and generated at run-time.

> These would expand like `$@' when in double quotes and like `$*' when being 
> assigned to a variable.

"${*}" expansion is also necessary in other situations than when
assigning to variables. It must be possible to still specify "${@}"
and "${*}" expansion explicitly.

Reply via email to