URL:
  <https://savannah.gnu.org/bugs/?68233>

                 Summary: Runing & using `bind -x '"\ez":"fg"'` cause tab
completion to print white space
                   Group: The GNU Bourne-Again SHell
               Submitter: None
               Submitted: Sun 12 Apr 2026 06:17:38 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 12 Apr 2026 06:17:38 AM UTC By: Anonymous
[Disclaimer: I'm not sure this is a bug or me not using `bind` correctly.]

Hi,

I found that autocompletion is erroneous after having bound `fg` to a key
combo and using that same key combo. Please find attached a screencast +
screenshot.

Steps to reproduce:

- Prepare file for autocompletion, i.e. `echo 42 > ./auto.txt;`.
- Test normal autocomplion, i.e. `cat ./au<TAB>`.
- Run `bind -x '"\ez":"fg"'`.
- Run `top`.
- Suspend with <Ctrl-z>.
- Invoke `fg` via the key combo, i.e. `<Alt-z>`.
- Test autocompletion, i.e. `cat ./au<TAB>`.

Tab (?) is printed on the screen instead of the true completed characters.

I have been able to reproduce this behavior on 5.3.3(1)-release &
5.3.9(1)-release.
I was *not* able to reproduce this on 5.2.37(1)-release.

I verified that running pure `fg` without a bind works as expected:
When `top` is in the background, gets back via `fg`, send back again via
<C-z>, *then* autocompletion works fine.

When hitting <Return> after <C-z>'ing `top` but before trying to autocomplete
with <TAB>, it works as expected, too.
So it feels to me as if the fg-via-bind somehow is not "finished" and the
shell is in some split-state that can be reset via <Return> but otherwise
cause autocompletion to not print the completed chars.







    _______________________________________________________
File Attachments:

Name: playground.screencast.mkv      Size: 1.1MiB

<https://file.savannah.gnu.org/file/playground.screencast.mkv?file_id=58465>

Name: playground-screenshot-04.png   Size: 149KiB

<https://file.savannah.gnu.org/file/playground-screenshot-04.png?file_id=58464>



    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-f290f6b25beb8cb99bbe243a6cd2c5fef79ffcde.tar.gz

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68233>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to