Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site mtxinu.UUCP
Path: utzoo!utcs!lsuc!pesnta!amd!dual!unisoft!mtxinu!ed
From: ed@mtxinu.UUCP (Ed Gould)
Newsgroups: net.bugs.usg,net.unix-wizards
Subject: Re: Make bug
Message-ID: <284@mtxinu.UUCP>
Date: Mon, 11-Feb-85 21:48:57 EST
Article-I.D.: mtxinu.284
Posted: Mon Feb 11 21:48:57 1985
Date-Received: Wed, 13-Feb-85 19:05:39 EST
References: <305@ist.UUCP>
Organization: mt Xinu, Berkeley, CA
Lines: 59
Xref: utcs net.bugs.usg:173 net.unix-wizards:11323

> I recently found the following bug (feature?) in System 3, 5, OSx Make
> in the following shell script:
> 
> cat <<'!' >make.tmp
> MAIN:
> 	echo *
> !
> make -f make.tmp
> make -f -  
> The outputs on all my systems (4.1, SysV, OSx) in empty directories were:
> 
> echo *
> make.tmp
> echo *
> *
> 
> Is this an obscure and useful feature the value of which I
> fail to understand or appreciate?
> -- 
> David Tilbrook		{inset, root44, mcvax, qtlon}!ist!dt
> Imperial Software Technology, London England

I get the following on 4.2bsd, using the 4.2 make and also Doug Gwyn's
System V make (/usr/5bin/make).  Note that since I generated this
with "script" the file "typescript" also appears.  (Editing to change
the ../xx file is omitted.)

	(ed) mtxinu> cat ../xx
	cat <<'!' >make.tmp
	MAIN:
		echo *
	!
	make -f make.tmp
	make -f -  /bin/sh ../xx
	echo *
	make.tmp typescript
	echo *
	make.tmp typescript
	(ed) mtxinu> cat ../xx
	cat <<'!' >make.tmp
	MAIN:
		echo *
	!
	/usr/5bin/make SHELL=/bin/sh -f make.tmp
	/usr/5bin/make SHELL=/bin/sh -f -  /bin/sh ../xx
		echo *
	make.tmp typescript
		echo *
	make.tmp typescript
	(ed) mtxinu>

I guess it's fixed here!

-- 
Ed Gould		    mt Xinu, 739 Allston Way, Berkeley, CA  94710  USA
{ucbvax,decvax}!mtxinu!ed   +1 415 644 0146