Quoth Stephen Hahn on Thu, Apr 27, 2006 at 12:58:49PM -0700:
> * David Bustos <David.Bustos at sun.com> [2006-04-27 11:45]:
> > Does anyone have any opinions on these new options for svcprop?
> > 
> >      -1             Can only be used with arguments which specify
> >             a single property.  If the property has a single
> >             value, then it is printed, without quotation.  If
> >             the property has no values or multiple values,
> >             then svcprop will print nothing and exit with
> >             status 3.
> > 
> >      -T type        Can only be used with the -1 option.  If the
> >             specified property has a type other than _type_
> >             or a subtype of _type_, svcprop will print
> >             nothing and exit with status 4.
>  
>   Why is -T not useful without -1?

Indeed, it is useful without -1.  I overreached in trying to rope off
use on multiple properties.  It should say "Can only be used with
arguments which specify a single property," instead.

> > Hmm, I wonder if we should also allow svcprop with no operands, which
> > would automatically use scf_myname() to determine the current service.
> 
>   Requires all processes to provide sanitized environments to their
>   descendants or scf_myname() to be a bit more contract aware... but
>   interesting.

I don't think that's a requirement; we can just say "Only guaranteed
inside a method process.  Will work in child processes as long as the
environment is not abused."


David

Reply via email to