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

Re: bash exorcism experiment ('bug' 762923 & 763012)



Hi,

Russell Stuart:
> 
> > >   - array variables.
> 
> No workaround for this one?  Pity.  This is what usually prevents
> conversion.

Well, you could use $ary_len to remember the length of the array,
	"$(eval "echo \"\$ary_$pos\"")"
for retrieving values, and
	val="some random value which probably requires quoting when eval'd"
	eval "ary_$pos=\"\$val\""
for assigning to individual members.

Package that in a couple of helper functions and it looks almost sane. :-/

-- 
-- Matthias Urlichs

Attachment: signature.asc
Description: Digital signature


Reply to: