This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Remove a trailing space resulting from file name completion
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org, chris at mips dot com, macro at linux-mips dot org
- Date: Mon, 14 May 2007 13:40:33 +0100 (BST)
- Subject: Re: Remove a trailing space resulting from file name completion
- References: <Pine.LNX.4.61.0705101326150.29962@perivale.mips.com> <uveezg4ps.fsf@gnu.org>
On Fri, 11 May 2007, Eli Zaretskii wrote:
> This is okay, but suppose I _did_ want a file name with trailing
> space: how would I go about that in this situation? Is there a way?
> If there isn't, either we should introduce one, or else we should tell
> in the command's doc string and in the manual that this is a
> restriction.
Well, my feeling is some form of escaping would be reasonable, e.g. using
a backslash. Daniel says he has some Evil Plan in this area, which I look
forward. ;-)
> Shouldn't you again check whether anything was left after stripping
> whitespace, and if not, output the same ``no filename to set it to"
> error message?
I am unable to trigger a case where the file name would be set to an
empty string -- I get: "Argument required (filename to set it to.)."
Maciej