bug-bash
[Top][All Lists]
Advanced

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

Re: currently doable? Indirect notation used w/a hash


From: Pierre Gaston
Subject: Re: currently doable? Indirect notation used w/a hash
Date: Mon, 10 Jun 2013 09:24:41 +0300

On Mon, Jun 10, 2013 at 12:02 AM, Linda Walsh <bash@tlinx.org> wrote:
> I was wondering if I was missing some syntax somewhere...
> but I wanted to be able to pass the name of a hash in
> and store stuff in it and later retrieve it... but it
> looks like it's only possible with an eval or such?
>
> Would be nice....(??)*sigh*
>

bash4 has associative arrays:

declare -A array
array[foobar]=baz
echo "${array[foobar]}"



reply via email to

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