This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How should we handle filenames containing spaces
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: Re: How should we handle filenames containing spaces
- From: Fernando Nasser <fnasser at redhat dot com>
- Date: Thu, 08 Nov 2001 11:13:25 -0500
- CC: Andrew Cagney <ac131313 at cygnus dot com>, Joel Brobecker <brobecker at ACT-Europe dot FR>, fnasser at cygnus dot com, gdb at sources dot redhat dot com
- Organization: Red Hat Canada
- References: <Pine.SUN.3.91.1011108174211.15310G-100000@is>
Eli Zaretskii wrote:
>
> On Thu, 8 Nov 2001, Fernando Nasser wrote:
>
> > I am in favor of double-quotes for handling these cases as it is an
> > accepted practice on Unix-like systems.
> >
> > As Andrew mentions below, this may interfere with completion
> > (although I think completion can be easily fixed to handle file names
> > that start with double quotes if it is not doing it already).
>
> Andrew is right: file-name completion currently doesn't support quoting
> with double quotes. See below.
>
> > Eli?
>
> I don't mind double quotes in principle, but I have two observations:
>
> - GDB uses single quotes when symbols require quoting (in particular,
> for C++ symbols).
>
> - The current file-name completion also supports single quotes, but
> doesn't support double quotes. I wrote it that way because single
> quotes seemed to be ``the GDB way'' of quoting, so I wanted to be
> compliant. (This also avoids the issues with file names that have
> embedded double quotes, but that's an unintended bonus, no more.)
>
> So perhaps we should consider single quotes instead of double ones, given
> the tradition, the current code, and the fact that the manual preaches
> single-quote quoting style.
OK with me. In any case, single-quotes are also supposed to work on
Unix.
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9