From owner-freebsd-bugs Sun Oct 24 20:50: 5 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 719C11518D for ; Sun, 24 Oct 1999 20:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA46377; Sun, 24 Oct 1999 20:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 3DDA81518D for ; Sun, 24 Oct 1999 20:44:44 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.2/8.9.2) id UAA32837; Sun, 24 Oct 1999 20:44:41 -0700 (PDT) Message-Id: <199910250344.UAA32837@bubba.whistle.com> Date: Sun, 24 Oct 1999 20:44:41 -0700 (PDT) From: Archie Cobbs Reply-To: archie@whistle.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/14509: bug in make(1) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14509 >Category: bin >Synopsis: bug in make(1) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 24 20:50:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Archie Cobbs >Release: FreeBSD 3.1-STABLE i386 >Organization: Whistle Communications, Inc. >Environment: Happens in 3.x-stable and 4.x-current. >Description: Make is incorrectly executing a shell command. Consider this makefile: foo1: var1=yes; test "$$var1" = "no" && var2=". $$var2"; echo OK The makefile should exit successfully, yet instead it bombs out. Removing the "var1=yes" should have no effect, but that seems to fix it (see foo2 below). >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 >Fix: Uknown. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message