From owner-freebsd-bugs Mon Oct 25 0:20: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3CFF914E1A for ; Mon, 25 Oct 1999 00:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA70279; Mon, 25 Oct 1999 00:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 25 Oct 1999 00:20:02 -0700 (PDT) Message-Id: <199910250720.AAA70279@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/14509: bug in make(1) Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/14509; it has been noted by GNATS. From: Ruslan Ermilov To: Archie Cobbs Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/14509: bug in make(1) Date: Mon, 25 Oct 1999 10:08:43 +0300 On Sun, Oct 24, 1999 at 08:44:41PM -0700, Archie Cobbs wrote: > > >How-To-Repeat: > > $ cat makefile > foo1: > var1=yes; test "$$var1" = "no" && var2=". $$var2"; echo OK > foo2: > test "$$var1" = "no" && var2=". $$var2"; echo OK > $ make foo1 > var1=yes; test "$var1" = "no" && var2=". $var2"; echo OK > *** Error code 1 > > Stop. > $ make foo2 > test "$var1" = "no" && var2=". $var2"; echo OK > OK > Certainly, there is a problem somewhere above, but the following makefiles work as expected: # cat ~/Makefile.1 foo1: var1=yes; test "$$var1" = "no" && var2=". $$var2" || :; echo OK foo2: test "$$var1" = "no" && var2=". $$var2" || :; echo OK # cat ~/Makefile.2 foo1: var1=yes; if test "$$var1" = "no"; then var2=". $$var2"; fi; echo OK foo2: if test "$$var1" = "no"; then var2=". $$var2"; fi; echo OK Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message