Bug 710714 - Bash-completion doesn't fire after "chown user: "
Summary: Bash-completion doesn't fire after "chown user: "
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: bash-completion
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-04 08:34 UTC by James Heather
Modified: 2011-11-04 23:05 UTC (History)
2 users (show)

Fixed In Version: 1.90-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-04 23:05:29 UTC
Type: ---


Attachments (Terms of Use)

Description James Heather 2011-06-04 08:34:11 UTC
Description of problem:

chown allows changing of ownership to a user and its related group by something like

  chown root: filename

This changes the owner and the group to root. In fact the following patterns are all allowable:

  chown user: filename
  chown :group filename
  chown user:group filename

Bash-completion seems to have rules for the second and third, but not for the first. I find the first to be the most useful: usually I want the owner and group to correspond.


Version-Release number of selected component (if applicable):

bash-completion-1.3-4.fc15.noarch


Steps to Reproduce:

1. chown root: filena[tab]

  
Actual results:

No completions


Expected results:

Completion of paths/filenames

Comment 1 Ville Skyttä 2011-06-04 10:24:14 UTC
It already works in upstream git - I didn't find an obvious commit that fixed it so it's likely that the fix will trickle to Fedora with the next upstream release.  Anyway I added a couple of test cases upstream to make the issue less likely to reappear in the future.

Comment 2 James Heather 2011-06-05 14:09:16 UTC
Thanks! Much obliged.

James

Comment 3 Ville Skyttä 2011-08-15 21:49:30 UTC
The upstream commit that seems to fix this is:
http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=8227e76

However, that commit touches a central part of bash-completion and I have a hunch that there may have been predecessor and successor changes that are needed too, so I'm going to defer getting this into Fedora until the next upstream version that contains the fix.


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