On Wed, Jun 04, 2008 at 09:21:40AM -0500, Nicolas Williams wrote: > On Tue, Jun 03, 2008 at 10:59:52PM -0700, Mike Shapiro wrote: > > Please yes. > > Consider it done. I'm relieved too. This is badly needed. > > > What is desperately needed is the syntax to > > reliably assign a ksh93 or bash array variable from a multi-valued > > property *and* handle all the escapes and quoting etc. > > I've got a ksh93 script that sets properties, including multi-values > properties with funny meta-chars in them, via svccfg(1M). So I think > we're OK for setting properties. It's getting their values that I find > very difficult. > > That said, and if there are no objections I'd be happy to look into how > to add support for setting SMF props via svcprop in a scriptable way > too.
No, I was talking about getting too -- I meant "set" as in set the ksh or bash variable. i.e. I want: typeset -a foo=`svcprop -xxx ...` or with eval in front to expand to the proper array assigment syntax, so I am quoting metacharacters and also filling in the array assignment delimiters, etc. -Mike -- Mike Shapiro, Sun Microsystems Fishworks. blogs.sun.com/mws/