Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Oct 1999 20:44:41 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/14509: bug in make(1)
Message-ID:  <199910250344.UAA32837@bubba.whistle.com>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910250344.UAA32837>