FS#26591 - Bad Bash Completion for chgrp

Attached to Project: Arch Linux
Opened by tim (sudokode) - Sunday, 23 October 2011, 17:41 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 18 March 2012, 06:08 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When tab completing with chgrp, the completion script only posts the available groups for the user to use instead of completing.

Additional info:
* bash-completion 1.3-2

Steps to reproduce:
1. Type 'chgrp' on a bash shell
2. Hit Tab twice, a list of available groups should appear
3. Type a few characters of one of the groups
4. Hit Tab again
5. Continue until annoyed

Fix:
The problem is the /etc/bash_completion.d/coreutils script. A patch file is attached that will fix this issue.

Thanks to falconindy for figuring out the cause.
This task depends upon

Closed by  Eric Belanger (Snowman)
Sunday, 18 March 2012, 06:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  bash-completion-1.99-1 in testing
Comment by Dave Reisner (falconindy) - Sunday, 23 October 2011, 17:51 GMT
You should take this upstream to Debian.
Comment by tim (sudokode) - Sunday, 23 October 2011, 18:12 GMT
That sounds painful.
Comment by Dave Reisner (falconindy) - Sunday, 23 October 2011, 18:18 GMT
Sure, but we're not going to apply your patch unless its accepted upstream.
Comment by tim (sudokode) - Sunday, 23 October 2011, 18:28 GMT Comment by tim (sudokode) - Sunday, 23 October 2011, 23:25 GMT
It has been fixed upstream... a while ago. Still no new stable version yet. The issue seems to appear in coreutils and shadow with _allowed_groups. More info: http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commit;h=42b107bcfcb8ce7c9deb9bc449574accabddff5f

Loading...