Bug 710714

Summary: Bash-completion doesn't fire after "chown user: "
Product: [Fedora] Fedora Reporter: James Heather <drfudgeboy>
Component: bash-completionAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: sheltren, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.90-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-04 23:05:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.