Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99996 - bash-completion doesn't for "tar tf foo.tar"
Summary: bash-completion doesn't for "tar tf foo.tar"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-23 02:36 UTC by Jan
Modified: 2005-07-24 04:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2005-07-23 02:36:59 UTC
With bash-completion enabled, completion is blocked for GNU tar and filenames 
ending on ".tar". It only works for .tgz, .tar.bz2, ...

Version: Latest stable as of 20050723 is app-shells/bash-completion-20050121-r9
The Changelog for 20050721 (~x86) doesn't list this as fixed.

This quick fix may not be particularly beautiful or complete.
It works for me, though. ;)

--- /etc/bash_completion.org    2005-07-17 11:24:50.000000000 +0200
+++ /etc/bash_completion        2005-07-17 11:35:13.000000000 +0200
@@ -2774,7 +2774,7 @@
                return 0
                ;;
        +([^IZzjy])f)
-               ext='t?(ar?(.))@(gz|Z|bz?(2))'
+               ext='t?(ar?(.))@(gz|Z|bz?(2)|)'
                regex='t\(ar?(\.)\)\(gz\|Z\|bz2\?\)'
                ;;
        *[Zz]*f)


Reproducible: Always
Steps to Reproduce:
1. Create a plain, uncompressed tar file, e.g. "foo.tar"
2. At the prompt, enter "tar tf foo<tab>"
3.
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-07-24 04:44:45 UTC
It is indeed fixed in 20050721.  I've backported the fixes and added
20050121-r10 (which remains stable).  Thanks for the bug.