Bug 512625 - TAB completion fails with error message
Summary: TAB completion fails with error message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: bash-completion
Version: rawhide
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-19 23:20 UTC by Horst H. von Brand
Modified: 2010-08-31 14:37 UTC (History)
4 users (show)

Fixed In Version: bash-completion-1.2-2.fc14.noarch
Clone Of:
Environment:
Last Closed: 2010-08-31 14:34:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Horst H. von Brand 2009-07-19 23:20:02 UTC
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.

Comment 1 Roman Rakus 2009-07-27 10:34:34 UTC
I can't reproduce it.
What do you have in /? Please provide me output of:
ls -aQ / | grep "^\"t"

Comment 2 Horst H. von Brand 2009-07-27 22:04:09 UTC
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.

Comment 3 Roman Rakus 2009-07-28 10:11:30 UTC
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?

Comment 4 Horst H. von Brand 2009-07-28 17:16:16 UTC
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.

Comment 5 Roman Rakus 2009-07-29 08:37:35 UTC
Since I can't reproduce this in pure bash changing component to bash-completion.

Comment 6 Ville Skyttä 2009-07-30 17:44:16 UTC
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

Comment 7 Horst H. von Brand 2009-07-31 21:03:21 UTC
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>").

Comment 8 Ville Skyttä 2009-08-02 17:32:56 UTC
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.

Comment 9 Bug Zapper 2009-11-16 11:01:58 UTC
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

Comment 10 Horst H. von Brand 2010-08-31 14:34:43 UTC
Fixed by bash-4.1.7-4.fc15.x86_64. Sorry I didn't check back earlier.

Comment 11 Horst H. von Brand 2010-08-31 14:37:11 UTC
Other possibly relevant versions:

bash-completion-1.2-2.fc14.noarch
rpm-4.8.1-5.fc15.x86_64


Note You need to log in before you can comment on or make changes to this bug.