delorie.com/archives/browse.cgi | search |
Sender: | rich AT phekda DOT freeserve DOT co DOT uk |
Message-ID: | <3E1BE841.8AB80EE6@phekda.freeserve.co.uk> |
Date: | Wed, 08 Jan 2003 08:58:41 +0000 |
From: | Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> |
X-Mailer: | Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) |
X-Accept-Language: | de,fr |
MIME-Version: | 1.0 |
To: | djgpp-workers AT delorie DOT com |
Subject: | Re: m4 port: return program name as 'm4' not '/some/path/m4.exe' [PATCH] |
References: | <E18VAre-0000gx-00 AT phekda DOT freeserve DOT co DOT uk> <003801c2b559$f33a0d60$0100a8c0 AT acp42g> <3E19BEAE DOT 7CC5B46C AT phekda DOT freeserve DOT co DOT uk> <200301061840 DOT h06IebI26175 AT envy DOT delorie DOT com> <3E1B35F9 DOT DC4EA825 AT phekda DOT freeserve DOT co DOT uk> <200301072309 DOT h07N9L415443 AT envy DOT delorie DOT com> |
Reply-To: | djgpp-workers AT delorie DOT com |
Hello. DJ Delorie wrote: > > > > In the crt0 code, compare the path to our executable to the $PATH. If > > > we were found in some directory already on the $PATH, omit the > > > directory and leave the basename. If we were not found on the $PATH, > > > leave the full path alone. > > > > 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, but Tim van Holder (hi Tim) told me the other day that it'll find directories called "foo" in the path as well. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |