Quoth Nicolas Williams on Thu, Apr 27, 2006 at 04:11:21PM -0500: > On Thu, Apr 27, 2006 at 02:08:52PM -0700, David Bustos wrote: > > > Hey, how about more string escaping options? E.g., hex, od -c style > > > (minus unnecessary spaces)? > > > > For arbitrary types? For astrings? I believe we already dump hex for > > opaque values. Otherwise, it doesn't seem like a common use case to me. > > Do you have cases in mind? > > Fetching multiple properties/values + some sed massaging + eval the > result to set shell variables en masse. > > Alternatively, maybe svcprop could have a shell output mode where it > outputs shell code that can safely be evaluated to set variables whose > names correspond to the selected properties.
So your goal is to avoid multiple svcprop invocations, then? This sounds worthy, and the shell code option seems the best choice to me. David