[BusyBox] associative arrays

Josh England jjengla at sandia.gov
Wed May 12 01:46:19 UTC 2004


Nevermind...I found something:

With $key and $value populated,

eval hash_$key=$value
value=$(eval "echo \$hash_$key")

seems to work well enough.  It does kind of pollute the namespace
though.  Has there been any thought on adding arrays to ash?

-JE

On Tue, 2004-05-11 at 18:12, Josh England wrote:
> Is there any way to emulate the behavior of an associative array in ash?
> 
> Having arrays of any kind would be extraordinarily useful.
> 
> Thanks,
> 
> -JE
> 
> 
> 
> ______________________________________________________________________
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox




More information about the busybox mailing list