Description of problem: Bash completion misbehaves when editing command lines from history and PS1 contains non-printable characters (even in \[ \]). Even printable characters between \[ \] trigger it. Version-Release number of selected component (if applicable): bash-3.2-9.fc7 How reproducible: Always Steps to Reproduce: 1. start a bash 2. set the prompt: PS1='\[\033[1m\]\u@\h:\w\$\[\033[m\] ' 3. execute ls -d /usr/bin 4. press UP to recall the just executed command from history 5. position the cursor over the first slash 6. enter /bi and press TAB three times Actual results: Cursor is positioned far ahead and editing the line is messed up somehow, e.g. backspace behaves wrong. Expected results: Cursor should be behind the expanded word (e.g. /bin/ in this example). Additional info:
This bug is rare but I have seen it on my system. It seems as though it's not counting the chars between \[ and \] correctly under certain circumstances.
This looks to be fixed by ftp://ftp.gnu.org/gnu/bash/bash-3.2-patches/bash32-024 Will build and test this week.
Fixed in bash-3.2-18.fc8
Fixing the resolution since the fix isn't available in the version given in this bug.
I cannot verify that this bug is fixed in bash-3.2-18.fc8. I still see the bug on an updated (F7->F8) and a freshly installed F8 system.
It seems this bug is fixed in the official patch 27 for bash. Unfortunately Fedora is stuck at patch level 25. Because this bug is really annoying I would greatly appreciate it if this can be fixed in Fedora 8. Thanks!
Yeah, sorry for the delay, I'll push it soon.
bash-3.2-20.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update bash'
bash-3.2-20.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update bash'
Great - it works! Many thanks! So this bug can be closed when the package is pushed to the official repos.
bash-3.2-20.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.
bash-3.2-20.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.