/etc/make.conf oddity (?)

Doug Barton dougb at FreeBSD.org
Thu Mar 1 17:58:11 UTC 2007


Ed Schouten wrote:

> 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.

Just to be a little pedantic, you need to quote variables _if_ there
is more than one of them.

foo="bar"
and
foo=bar

are functionally equivalent, whereas

foo="bar baz"
and
foo=bar baz

mean two very different things, as you suggest above.

If you want to see good examples of when quoting might be needed for
make, check out ports-mgmt/portconf.

hth,

Doug

-- 

    This .signature sanitized for your protection


More information about the freebsd-current mailing list