OpenSolaris

Printable Version Enter a New Search
Bug ID 6419671
Synopsis svcprop -1 & -T
State 1-Dispatched (Default State)
Category:Subcategory utility:smf
Keywords oss-bite-size | smf
Sponsor
Submitter
Reported Against snv_38
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs 6420134 , 6218143
Submit Date 28-April-2006
Last Update Date 31-January-2007
Description
bustos 2006-04-28

The dominant use of svcprop is to retrieve the value of a property from
the repository and assign it to a shell variable.  svcprop's quoting
rules make this quite complicated.  svcprop uses those rules because
properties may have multiple values or no values.  Usually, the calling
script should consider such a case to be an error, but detecting this in
the shell is also complicated, sufficiently so that most script authors
simply omit it.  svcprop could greatly simplify this use case with
options like

     -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 arguments which specify
                a single property.  If the specified property has
                a type other than _type_ or a subtype of _type_,
                svcprop will print nothing and exit with status 4.
Work Around
N/A
Comments
N/A