• Bug#305439: gdb: tab complete does not escape spaces

    From Sergio Durigan Junior@21:1/5 to Matt Kraai on Mon Jul 28 01:10:01 2025
    Control: severity -1 wishlist
    Control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=26180

    On Tuesday, April 19 2005, Matt Kraai wrote:

    I ran gdb on totem:

    gdb totem

    Once it had started, I tried to run it on
    "How software patents work.mov" by typing

    r How<TAB>

    This was completed to

    r How software patents work.mov

    This caused totem to complain because "How" did not exist.

    I think that, when gdb performs tab completion, it should escape the
    spaces by preceding them with backslashes.

    This is still valid on GDB 16.3 (currently in Trixie), but according to:

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

    the bugu should have been fixed. I'll investigate more later. For now,
    let me downgrade the severity.

    --
    Sergio
    GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
    Please send encrypted e-mail if possible
    https://sergiodj.net/

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEI3pUsQKHKL8A7zH00Ot2KGX8XjYFAmiGrfsACgkQ0Ot2KGX8 XjY5IA/7BWc5r6mQlS2r+v1m17QdGbkLY0FXFU91LY+kjwRUynRhqe2aLF1ah2uO iLOHGfxhD58UthxTH/MyK6E6e22t1pwQYubPU04VhGc8aMN890GwTlPUD7Xv+rKN RkdQl0fhcsJH5YsIgsZz/iQ+4I6OgEQpH4OESf/WupB2SrOUlCTXIgP5wPWrbgty kfdiuk+nJGD+n54iHaoFROiq0ZA57M/adnGXaurGWAodQdSfJR2v4ix5k1MjJUra kr1bj/38xxy8Ei9tnxig5datByfn4tTcWwqkgUfu1TKixTv8CTa/w31E3imean+K jacwKbMlhilZ8YCHctmWvLgYHvRqKHUK5jhIWk0N9XV6K1AS4INcB8qDsOJH6upT pipvcJOmLvwAoNXPHh6/GrNoKNxGC+cOlsC8vhONqm+WtvZBOHYAlJBCadbtsA91 aH1+xXCLUw4ubUZVdIcG6lLPh2jYorKdq57Vn3H+ALnHhPVWqQPtFxtopqsR+gAb eWZjFujXlgBH9irboGoyDu+56E2eoJIN7d53N7YQguPcuqx7Zg3isGsFIGmZ0JrI FgSBlbuNTAMJktJ8u5kIKFCbidtUaZal0xg0Sb2EYyjWFjUiI52iXXIf4wH+ZFTU JbGMwxjKsqWEk6PRaMbVPZuWhL1XUyya7Zyrrw/+UCL9GV+luU