Date: Thu, 9 Jan 2003 07:53:00 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Dawe cc: djgpp-workers AT delorie DOT com Subject: Re: m4 port: return program name as 'm4' not '/some/path/m4.exe' [PATCH] In-Reply-To: <3E1BE841.8AB80EE6@phekda.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 8 Jan 2003, Richard Dawe wrote: > > > With or without the '.exe'? > > > > Depends if "test -f foo" finds foo.exe, along with other common things > > that look for files. > > "test -f foo" won't find foo.exe. "test -x foo" will find foo.exe "test -f foo" _will_ find foo.exe if you set TEST_FINDS_EXE=y. > but Tim van > Holder (hi Tim) told me the other day that it'll find directories called "foo" > in the path as well. Isn't that a bug? Does that happen on Unix and GNU/Linux systems as well.