Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
nomenclature for conf files
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Zoran Kolic  
View profile  
 More options Nov 12 2012, 12:12 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Zoran Kolic <zko...@sbb.rs>
Date: Mon, 12 Nov 2012 06:12:29 +0100
Local: Mon, Nov 12 2012 12:12 am
Subject: nomenclature for conf files
It might sound stupid, but I'd like to know if there's
any difference. Are those 3 line the same?

WITH_KMS=YES
WITH_KMS="YES"
WITH_KMS=yes

Best regards

                             Zoran

_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kurt Buff  
View profile  
 More options Nov 12 2012, 12:20 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Kurt Buff <kurt.b...@gmail.com>
Date: Sun, 11 Nov 2012 21:20:13 -0800
Local: Mon, Nov 12 2012 12:20 am
Subject: Re: nomenclature for conf files

On Sun, Nov 11, 2012 at 9:12 PM, Zoran Kolic <zko...@sbb.rs> wrote:
> It might sound stupid, but I'd like to know if there's
> any difference. Are those 3 line the same?

> WITH_KMS=YES
> WITH_KMS="YES"
> WITH_KMS=yes

With regard to their use in /etc/rc.conf, no, absolutely not.

In general, from my experience, only the second one will work.

This might, or might not, be true for other uses, but rc.conf is
pretty picky about this.

Kurt
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zoran Kolic  
View profile  
 More options Nov 12 2012, 12:30 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Zoran Kolic <zko...@sbb.rs>
Date: Mon, 12 Nov 2012 06:29:39 +0100
Local: Mon, Nov 12 2012 12:29 am
Subject: Re: nomenclature for conf files

> > WITH_KMS=YES
> > WITH_KMS="YES"
> > WITH_KMS=yes

> With regard to their use in /etc/rc.conf, no, absolutely not.
> In general, from my experience, only the second one will work.

Yep, in rc.conf only the second one. I was thinking of make.conf.
It is the place kms should be set. Loader conf might take only
"" versions also.
Thank you and best regards

                           Zoran

_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Oberman  
View profile  
 More options Nov 12 2012, 2:13 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Kevin Oberman <kob6...@gmail.com>
Date: Sun, 11 Nov 2012 23:13:02 -0800
Local: Mon, Nov 12 2012 2:13 am
Subject: Re: nomenclature for conf files

On Sun, Nov 11, 2012 at 9:29 PM, Zoran Kolic <zko...@sbb.rs> wrote:
> > > WITH_KMS=YES
> > > WITH_KMS="YES"
> > > WITH_KMS=yes

> > With regard to their use in /etc/rc.conf, no, absolutely not.
> > In general, from my experience, only the second one will work.

> Yep, in rc.conf only the second one. I was thinking of make.conf.
> It is the place kms should be set. Loader conf might take only
> "" versions also.
> Thank you and best regards

A minor detail, but the line does not belong in rc.conf (a shell script),
but in /etc/make.conf (a Makefile). Normally you don't use quotation marks
in that case, but it really does not matter in this case as the presence of
"WITH_KMS=" is the significant part. I believe that "WITH_KMS=no" and
"WITH_KMS=yes" are equivalent.
--
R. Kevin Oberman, Network Engineer
E-mail: kob6...@gmail.com
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Rees  
View profile  
 More options Nov 12 2012, 3:29 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Chris Rees <utis...@gmail.com>
Date: Mon, 12 Nov 2012 08:29:27 +0000
Local: Mon, Nov 12 2012 3:29 am
Subject: Re: nomenclature for conf files
On 12 Nov 2012 05:20, "Kurt Buff" <kurt.b...@gmail.com> wrote:

> On Sun, Nov 11, 2012 at 9:12 PM, Zoran Kolic <zko...@sbb.rs> wrote:
> > It might sound stupid, but I'd like to know if there's
> > any difference. Are those 3 line the same?

> > WITH_KMS=YES
> > WITH_KMS="YES"
> > WITH_KMS=yes

> With regard to their use in /etc/rc.conf, no, absolutely not.

> In general, from my experience, only the second one will work.

> This might, or might not, be true for other uses, but rc.conf is
> pretty picky about this.

All three are fine in make.conf and rc.conf

The issue with rc.conf is when people put spaces around the = sign.

Chris
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Schenkeveld  
View profile  
 More options Nov 12 2012, 3:55 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Paul Schenkeveld <free...@psconsult.nl>
Date: Mon, 12 Nov 2012 09:55:24 +0100
Local: Mon, Nov 12 2012 3:55 am
Subject: Re: nomenclature for conf files

Indeed /etc/rc (executed by /bin/sh) accepts all three forms because
quotes are optional in /bin/sh and /etc/rc.subr (sourced by /etc/rc)
matches the value against "[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1".

Also, the FreeBSD makefiles and sources test all WITH_* variables with
.ifdef or #ifdef so the value doesn't matter and can even be empty.
White space around the = is permitted too (but not in rc.conf!).

However, things are different when people start using tools to maintain
rc.conf/make.conf.  If not written with the above in mind, these tools
may have problems parsing these files.

It's good practice to be consistent and use a canonical form that
matches the documentation or example files as this is probably the
syntax that is guarenteed to not confuse such tools.  In other words:
"Be conservative in what you send [write], liberal in what you accept".

HTH

Paul Schenkeveld
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Rees  
View profile  
 More options Nov 12 2012, 5:25 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Chris Rees <utis...@gmail.com>
Date: Mon, 12 Nov 2012 10:24:57 +0000
Local: Mon, Nov 12 2012 5:24 am
Subject: Re: nomenclature for conf files
On 12 Nov 2012 08:55, "Paul Schenkeveld" <free...@psconsult.nl> wrote:

Doesn't sound like a very good tool if it can't handle quoting and capital
letters, but I accept the principle.

Quotes in Makefiles are often harmful, so good practice IMO is to only use
them when necessary.

Chris
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Schenkeveld  
View profile  
 More options Nov 12 2012, 5:34 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Paul Schenkeveld <free...@psconsult.nl>
Date: Mon, 12 Nov 2012 11:34:09 +0100
Local: Mon, Nov 12 2012 5:34 am
Subject: Re: nomenclature for conf files

I wouldn't want to verify all home-grown scripts written by sysadmins
around the Internet though.

> Quotes in Makefiles are often harmful, so good practice IMO is to only use
> them when necessary.

For Makefiles yes, quotes are not part of the assignment syntax but
appear in the expansion of the macros so be careful.  For sh compatible
config files better use them for clarity and parsability although I
realize that then differences between " and ' come into play too.

HTH

Paul Schenkeveld
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kurt Buff  
View profile  
 More options Nov 12 2012, 10:35 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Kurt Buff <kurt.b...@gmail.com>
Date: Mon, 12 Nov 2012 07:35:12 -0800
Local: Mon, Nov 12 2012 10:35 am
Subject: Re: nomenclature for conf files

This has not been my experience - but I will experiment soon and see
if I can verify.

Kurt
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Rees  
View profile  
 More options Nov 12 2012, 10:52 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Chris Rees <utis...@gmail.com>
Date: Mon, 12 Nov 2012 15:51:55 +0000
Local: Mon, Nov 12 2012 10:51 am
Subject: Re: nomenclature for conf files
On 12 Nov 2012 15:35, "Kurt Buff" <kurt.b...@gmail.com> wrote:

Anything that complains about any of those syntaxes is a bug.  Please file
a PR if you find any examples.

Chris
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
illoai@gmail.com  
View profile  
 More options Nov 13 2012, 11:50 am
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: "ill...@gmail.com" <ill...@gmail.com>
Date: Tue, 13 Nov 2012 11:49:47 -0500
Local: Tues, Nov 13 2012 11:49 am
Subject: Re: nomenclature for conf files
On 12 November 2012 00:12, Zoran Kolic <zko...@sbb.rs> wrote:

> It might sound stupid, but I'd like to know if there's
> any difference. Are those 3 line the same?

> WITH_KMS=YES
> WITH_KMS="YES"
> WITH_KMS=yes

> Best regards

In /etc/make.conf it shouldn't matter: they should all
be treated as synonyms for:
WITH_KMS=

--
--
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jakub Lach  
View profile  
 More options Nov 13 2012, 12:43 pm
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Jakub Lach <jakub_l...@mailplus.pl>
Date: Tue, 13 Nov 2012 09:42:42 -0800 (PST)
Local: Tues, Nov 13 2012 12:42 pm
Subject: Re: nomenclature for conf files

> Also, the FreeBSD makefiles and sources test all WITH_* variables with
> .ifdef or #ifdef so the value doesn't matter and can even be empty.

This is exactly the point. But I still use 'yes' just for mnemotechnical
reason.

--
View this message in context: http://freebsd.1045724.n5.nabble.com/nomenclature-for-conf-files-tp57...
Sent from the freebsd-stable mailing list archive at Nabble.com.
_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kurt Buff  
View profile  
 More options Nov 13 2012, 1:02 pm
Newsgroups: mpc.lists.freebsd.stable, muc.lists.freebsd.stable
From: Kurt Buff <kurt.b...@gmail.com>
Date: Tue, 13 Nov 2012 10:02:12 -0800
Local: Tues, Nov 13 2012 1:02 pm
Subject: Re: nomenclature for conf files
OK - I figured it out.

I have always followed the examples in the handbook. I have also been
bitten more than once when I've typoed, and left out one of the quote
marks.

That tends to leave a lasting impression, as it can be painful to fix,
sometimes requiring to drop into single user mode to clean up.

Kurt

_______________________________________________
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »