[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is there a way to assign indexed arrays like the new assoc arrays wa
From: |
Eli Schwartz |
Subject: |
Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ? |
Date: |
Fri, 12 Mar 2021 17:05:42 -0500 |
On 3/12/21 4:56 PM, Alex fxmbsw7 Ratchev wrote:
> i agree, but it could the same way be with indexed arrays for simplified
> use, but its already taken by every ( ..arg.. ) is a value, not key
> i just say it would be useful if it allowed similiar like arr=( key val
> key2 val ) just the keys of course would been positive numbers only
What is the meaning of
declare -A assoc=( key1 val1 key2 val2 )
previous to its ability to assign key/value pairs? Did it error out? How
did it treat each element?
...
What is the meaning of
declare indexed=( 0 val1 1 val2 )
Does it error out? How does it treat each element?
How would you propose implementing this feature request, without
changing the way existing scripts work?
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
OpenPGP_signature
Description: OpenPGP digital signature
- is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Alex fxmbsw7 Ratchev, 2021/03/12
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Lawrence Velázquez, 2021/03/12
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Alex fxmbsw7 Ratchev, 2021/03/12
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Lawrence Velázquez, 2021/03/12
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Alex fxmbsw7 Ratchev, 2021/03/12
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?,
Eli Schwartz <=
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Alex fxmbsw7 Ratchev, 2021/03/12
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Alex fxmbsw7 Ratchev, 2021/03/12
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Greg Wooledge, 2021/03/13
- Re: is there a way to assign indexed arrays like the new assoc arrays way without [..]= typing ?, Alex fxmbsw7 Ratchev, 2021/03/13