BSD make -- Malformed conditional

Matthew Seaman m.seaman at infracaninophile.co.uk
Fri Jan 27 17:45:14 UTC 2012


On 27/01/2012 16:51, Chris Rees wrote:
>> .for item in ${LIST}
>> > .if ${item} == "this"  # Ooops

> You shouldn't use quotes either.

I think that not quoting might be better style, but it's not the typical
usage in make(1).  There are quite a few contrary examples in the ports:

% < /tmp/ports-makefiles xargs grep '} == "' | wc -l
    1674
% < /tmp/ports-makefiles xargs grep '} == [^"]' | wc -l
     531

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120127/ffbf87db/signature.pgp


More information about the freebsd-ports mailing list