From owner-freebsd-current Mon Jul 22 00:35:21 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA24184 for current-outgoing; Mon, 22 Jul 1996 00:35:21 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA24178 for ; Mon, 22 Jul 1996 00:35:17 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id RAA09746; Mon, 22 Jul 1996 17:30:45 +1000 Date: Mon, 22 Jul 1996 17:30:45 +1000 From: Bruce Evans Message-Id: <199607220730.RAA09746@godzilla.zeta.org.au> To: marxx@doomsday.org, spfarrel@midway.uchicago.edu Subject: Re: Make world Cc: current@freebsd.org Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >(the problem, incidentally, is that it had stuff like (this is out of >memory): > > @if test -d ${SOMEVARIABLE}; then \ > rm -rf ${SOMEVARIABLE} > >which seems fine, but if you look at the behavoir or test, it seems >rather unexpected... > > bash$ if test -d; then echo hi; fi > hi > >i would have thought that the directory would return false, but >it returns true... =(. so this is what happens in the makefile: FreeBSD still has the bug that the empty pathname means the current directory. Thus `test -d ""' exits with status 0. `test -d' with no args is completely different. For some reason it isn't a syntax error, and it exits with status 0 here although I have fixed the empty pathname bug. Bruce