This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Do not treat '\' as escape character on MinGW Windows hosts
On Wed, Apr 21, 2010 at 08:17:14PM -0400, Joel Brobecker wrote:
>> > (gdb) file c:\\foo\\bar.exe
>> > Reading symbols from c:\foo\bar.exe...done.
>>
>> Why not just use a "forward" slash?
>
>It's not always that easy - A lot of times, the user wants to copy/paste
>a path that's been printed by another tool. Also, the typical Windows
>user seems to think that he should be able to use a valid Windows path
>(which I agree)...
I agree too except when we're talking about something that is
essentially a UNIX tool. And, I don't see how you can talk about the
pain of doubling up the backslashes if you're talking about cutting and
pasting.
I know I'll be outvoted here but I I hate cluttering code with MS-DOS
workarounds.
cgf