[Bug cli/26180] tab completion needs whitespace escaping

palves at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jul 6 14:23:28 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=26180

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #2 from Pedro Alves <palves at redhat dot com> ---
I actually have a branch that implements that.

https://github.com/palves/gdb/commits/palves/filename-options

I ran into this while implementing support for filename options in the
gdb::option framework, for "add-inferior -exec FILENAME".

With that, this works:

 (gdb) shell touch a\ b
 (gdb) run a\ [TAB]
 (gdb) run a\ b

As well as:

 (gdb) add-inferior -exec a\ [TAB]
 (gdb) add-inferior -exec a\ b

The branch also makes GDB's single quoting behaves like Bash's.  Currently
single and double quoting behave the same in GDB.

I need to find time to clean that up and submit it upstream.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list