Date: Mon, 22 Jul 1996 17:30:45 +1000 From: Bruce Evans <bde@zeta.org.au> To: marxx@doomsday.org, spfarrel@midway.uchicago.edu Cc: current@freebsd.org Subject: Re: Make world Message-ID: <199607220730.RAA09746@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>(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 <blank> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607220730.RAA09746>