help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

is there a way to assign indexed arrays like the new assoc arrays way wi


From: Alex fxmbsw7 Ratchev
Subject: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?
Date: Fri, 12 Mar 2021 22:39:28 +0100

so i heard off my good buddy greycat that i could assign assoc arrays like
declare -A assoc=( key1 val1 key2 val2 )
that was new and nice

is there such also for indexed arrays, or planned to do ? since it makes
coding very simpler

otherwise, i have to parse and reset declare -p output for, ..whatever
purpose
mass modifying or so arrays without loop

with such a way for indexed arrays too such would be much simpler

just asking..


reply via email to

[Prev in Thread] Current Thread [Next in Thread]