Style strangenesses (was: cvs commit: src/etc rc.subr)

Yar Tikhiy yar at comp.chem.msu.su
Mon Nov 27 20:38:00 PST 2006


On Tue, Nov 28, 2006 at 09:06:44AM +1030, Greg 'groggy' Lehey wrote:
> On Monday, 27 November 2006 at 16:03:24 +0300, Yar Tikhiy wrote:
> > By the way, now the output follows the NetBSD rc.conf style:
> >
> > # $foo_enable
> > foo_enable=YES
> >
> > Could it be changed even further to match our own rc.conf style?
> > I.e.:
> >
> > # $foo_enable
> > foo_enable="YES"
> 
> Can somebody justify this style to me?

IMHO, it is uniform a) to make automatic changes easy, and b) to
prevent newbie questions on sh(1) syntax: "Who said sh(1)?  Forget
it and just use the quotes." :-)

> It seems unnecessarily
> confusing, like Microsoft mail headers with
> 
>   To: "'Fred Bloggs'" <fred at nowhere.com>

If Microsoft insist that the user's display name is 'Fred Bloggs',
with apostrophes, they are free to use the double quotes around
it.  RFC 2822 discourages unneeded quoted-string in local-part
only. :-)

-- 
Yar


More information about the cvs-src mailing list