Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2007 13:55:42 +0100
From:      Milan Obuch <freebsd-current@dino.sk>
To:        freebsd-current@freebsd.org
Subject:   Re: /etc/make.conf oddity (?)
Message-ID:  <200703011355.43119.freebsd-current@dino.sk>
In-Reply-To: <20070301080449.GO11232@hoeg.nl>
References:  <200703010829.18334.freebsd-current@dino.sk> <20070301080449.GO11232@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 01 March 2007 09:04, Ed Schouten wrote:
> Hello Milan,
>
> * Milan Obuch <freebsd-current@dino.sk> wrote:
> > I put KERNCONF="FOX" into my /etc/make.conf, make buildkernel in /usr/src
> > tells ERROR: Missing kernel configuration file(s) (FOX).
> >
> > If I change it into KERNCONF=FOX, no error message and build works as if
> > command make buildkernel KERNCONF=FOX were given.
> >
> > My understanding was variable values should be enclosed in quotes, did I
> > missread or missinterpret something?
> >
> > Even if it is no real issue (read: could not find simple workaround), I
> > would like to know if it's me or not.
>
> I once had this issue as well. Keep in mind that /etc/make.conf is a
> Makefile, not a shellscript. In Makefiles you don't need to quote your
> variables. In shell scripts you do, because the second argument will be
> treated as a command.
>
> Yours,

Thanks, so it was me... I am going tp remove all quotes for the sake of 
consistency, as I think in WITHOUT_foo="YES" and WITHOUT_foo=YES have both 
the same effect - all that's checked is if variable is defined and real value 
is unimportant. But it would be easier to avoid such errors this way...
Regards,
Milan

-- 
Address this mail is sent from is used only for this mailing list.
Do not send any messages to it directly as a response, reply only
to mailing list. For mail to me personally, use milan in address instead.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703011355.43119.freebsd-current>