Make bug
Ed Gould
ed at mtxinu.UUCP
Tue Feb 12 12:48:57 AEST 1985
> 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 - <make.tmp
>
> 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 - <make.tmp
(ed) mtxinu> /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 - <make.tmp
(ed) mtxinu> /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
More information about the Comp.unix.wizards
mailing list