Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: TAB completion doesn't work on "$(< /t", error message Version-Release number of selected component (if applicable): bash-4.0.24-1.fc12.x86_64 How reproducible: Steps to Reproduce: 1. rpm $(< /t<TAB> 2. 3. Actual results: rpm -e $(< /terror: ^$(< /t.*$: regcomp failed: Unmatched ( or \( Expected results: Offer completions, i.e., "rpm -e $(< /tmp/" Additional info: The above message seems to show only if there are no completions loaded.
I can't reproduce it. What do you have in /? Please provide me output of: ls -aQ / | grep "^\"t"
What I have is bog-standard Fedora / $ ls -aQ / | grep "^\"t" "tmp" I get the same with e.g. "/b<TAB>" or "/bi<TAB>". But it seems only with rpm, as for example "ls -l $(< /t<TAB>" does nothing (no expansion, either). Some completion stuff? BTW, this is a root shell started via "su -" in a gnome-terminal. Tried in a regular tty, both for root and my regular user account I get the above, but only for "rpm -e $(< /t<TAB>", not for "ls -l $(< /t<TAB>" Tried on another, (mostly) freshly installed rawhide x86_64 machine via ssh to my regular account + screen, same results. Used my test account here (no configuration), same results.
This looks like you have installed bash-completion, right? I'm unable to reproduce it without bash-completion, but with it there is bad completions. But I don't get error you described above. So, do you have installed bash-completion rpm?
Yes, I have bash-completion-1.0-3.fc12.noarch here. I also have completions for git (from git) in my account, but not at the other machine nor in the test account.
Since I can't reproduce this in pure bash changing component to bash-completion.
The error message comes from rpm; bash-completion ends up invoking basically rpm -qa --nodigest --nosignature '$(< /t*' Looks like the problem is more generic than that - bash-completion breaks command substitution completions, reported upstream: https://alioth.debian.org/tracker/index.php?func=detail&aid=311858&group_id=100114&atid=413095
Now bash-completion-1.0-4.fc12.noarch. No more error message, but no suggested expansion (not for "rpm $(< /t<TAB>" nor for "ls -l $(< /t<TAB>").
There are no changes between -3.fc12 and -4.fc12 that could affect this, it's just a rebuild. Perhaps something changed in rpm or bash simultaneously. Anyway, see comment 6 and the linked bug report - unfortunately I think getting this fixed is going to take quite a while.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Fixed by bash-4.1.7-4.fc15.x86_64. Sorry I didn't check back earlier.
Other possibly relevant versions: bash-completion-1.2-2.fc14.noarch rpm-4.8.1-5.fc15.x86_64