* James Carlson <james.d.carlson at Sun.COM> [2008-12-24 13:43]:
> Shawn Walker writes:
> > Tom Whitten wrote:
> > > Both - and _ are allowed in property names.
> > 
> > I know they're both allowed, but I was wondering what the general 
> > practice or preference was (for OpenSolaris).
> 
> There are both.  But wc tells me that '-' is favored by about a 3-to-1
> margin:
> 
> % svcs -a -o fmri | grep -v ^lrc: | grep _ | wc -l
>       19
> % svcs -a -o fmri | grep - | wc -l
>       57

  We definitely prefer '-' in service and instance names.  I suspect we
  prefer '_' in property names.  Property groups, probably, too, but a
  scan of svcprop(1) output suggests we've been less consistent there.
  (And I don't think we want '_' as a word separator in GNU-style
  command options.)

  - Stephen


Reply via email to