bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tim-4] Use basename (program_name) in messages


From: Tim Van Holder
Subject: Re: [tim-4] Use basename (program_name) in messages
Date: 07 Jan 2002 11:12:06 +0100

On Mon, 2002-01-07 at 10:40, Akim Demaille wrote:
> 
> | I think this requires adding basename.c to lib/ for
> | systems that don't have it.
> 
> it does, see my previous reply.
> 
> Your patch goes against the unspoken standards.  Bison is correct to
> expand its full path if the invocation was qualified.

I know; the problem is that on DOSish systems, argv0 is ALWAYS fully
qualified, leading to VERY ugly messages (esp. with LFNs in the path, as
argv0 contains an SFN path).
For example, if bison.exe is in d:/development/djgpp-cvs/bin/bison.exe,
you get:

Usage: d:\develo~1\djgpp~1\bin\bison.exe [...]

I'm assuming this is why IIRC binutils does call basename() on 
program_name.

But since that's a system-specific problem, these changes will probably
have to stay in my local patches for the DJGPP package.  No biggie.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]