From owner-freebsd-bugs Fri Jun 9 16:19:32 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id QAA09303 for bugs-outgoing; Fri, 9 Jun 1995 16:19:32 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id QAA09297 for ; Fri, 9 Jun 1995 16:19:30 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id QAA06627; Fri, 9 Jun 1995 16:18:52 -0700 From: "Rodney W. Grimes" Message-Id: <199506092318.QAA06627@gndrsh.aac.dev.com> Subject: Re: make doesn't like lines with a tab only To: ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA?= =?KOI8-R?Q?=FE=C5=D2=CE=CF=D7?=) Date: Fri, 9 Jun 1995 16:18:52 -0700 (PDT) Cc: rls@hades.id.net, bugs@FreeBSD.org, mal@algonet.se In-Reply-To: from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA?= =?KOI8-R?Q?=FE=C5=D2=CE=CF=D7?=" at Jun 10, 95 09:22:56 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1723 Sender: bugs-owner@FreeBSD.org Precedence: bulk > > -----BEGIN PGP SIGNED MESSAGE----- > > In message <199506092055.QAA00886@hades.id.net> Robert Shady writes: > > >> > the following "Makefile" > >> > --SNIP-- > >> > foo: bar > >> > xyzzy -o foo bar > >> > > >> > --SNIP-- > >> > > >> > results in: > >> > "Makefile", line 3: Need an operator > >> > Fatal errors encountered -- cannot continue > >> > >> The only bug here is that your makefile is arguably wrong. A tab indicates > >> there is to be a command in this location, you have provided no command. > >> > >> Many other makes ignore this arguably erronous line. I belive POSIX says > >> this shall cause an error. > > >That may be what POSIX says it should cause, but in real life it causes > >alot of headaches. Maybe a command line switch to ignore it would be in > >order? Defaulting, of course, to POSIX. > > POSIX says that anything after must be passed to shell exactly. > It says nothing about error here. > So, simple it is equal to > sh -c "" > Normal make must skip such lines. F.e. GNU makes which claims > itself as POSIX-conformant don't produce error here. > > BSD make isn't POSIX make, differences are too big, but even in this > case as long time tradition of BSD make such lines was accepted without > error. As I notice, this nitpicking change (producing error) > cause too many ports Makefiles to be converted. > > I vote for removing this superflows checking. > You should have said something 3 months ago when the change was made, not now!!! And don't ``vote'' when no vote has been called for!!! -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD