This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Remove a trailing space resulting from file name completion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]