Date: Mon, 6 Jan 2003 13:40:37 -0500 Message-Id: <200301061840.h06IebI26175@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: <3E19BEAE.7CC5B46C@phekda.freeserve.co.uk> (message from Richard Dawe on Mon, 06 Jan 2003 17:36:46 +0000) Subject: Re: m4 port: return program name as 'm4' not '/some/path/m4.exe' [PATCH] References: <003801c2b559$f33a0d60$0100a8c0 AT acp42g> <3E19BEAE DOT 7CC5B46C AT phekda DOT freeserve DOT co DOT uk> 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 Note that for maximum unix compatibility, we should probably do this: 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. Another thing we might consider is to remove the drive specifier if it happens to be the current drive. For many cases, this will make it look unix-like enough to work with dos-unaware programs.