Bug 912113 - bash-completion too clever for its own good
Summary: bash-completion too clever for its own good
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bash-completion
Version: 18
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: 2013-02-17 18:34 UTC by Michal Jaegermann
Modified: 2013-04-20 20:06 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-18 02:43:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2013-02-17 18:34:49 UTC
Description of problem:

Try this in some non-empty directory

  find . | cpio -pmd /var/tmp/target

where "/var/tmp/target" actually exists. When typing the above on a command line it does not matter how long substring of "/var/tmp/target" is already provided bash has not a clue how to complete.  This used to work just fine.

Moreover assumptions that a zip archive needs to have a .zip suffix, and other similar of that sort, are clearly DOA.  Quite annoying, in fact.

Version-Release number of selected component (if applicable):
bash-completion-2.0-2.fc18

Comment 1 Ville Skyttä 2013-02-17 19:19:56 UTC
(In reply to comment #0)
> This used to work just fine.

Used to work when/where? In previous Fedora or bash-completion versions or...?

> Moreover assumptions that a zip archive needs to have a .zip suffix, and
> other similar of that sort, are clearly DOA.  Quite annoying, in fact.

If you disagree with what bash-completion offers, you can get rid of it by just removing the package. Or if you wish to override it on per completion basis at runtime and revert to what plain bash would complete, hit Alt+/ instead of where you'd normally hit Tab.

In the future, please report separate issues in separate bugs, thanks. In this case, the zip remark has nothing to do with the cpio non-completion.

Comment 2 Ville Skyttä 2013-02-17 19:48:34 UTC
The cpio completion is marginally better wrt recognizing pass thru mode now in upstream git. I'm assuming that by "used to work just fine" you meant setups where bash-completion wasn't installed as the cpio completion in bash-completion seems to be a quite weak one and hasn't been touched in ages.

http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=eb396b58a709201e61daf2e381abecb411863b2a

Comment 3 Michal Jaegermann 2013-02-17 20:33:59 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > This used to work just fine.
> 
> Used to work when/where? In previous Fedora or bash-completion versions
> or...?

Yeah, maybe you are right.  It surely worked when bash-completion was NOT installed, and bash was doing things on its own, and I possibly remember that situation.  I noticed after an upgrade to F18 but it could have been an accident.

> If you disagree with what bash-completion offers ...

Various things are helpful while other just opposite.  I guess that I will have to learn to use that Alt+/ too.

> The cpio completion is marginally better wrt recognizing pass thru mode now in upstream git.

That is good to hear even if only "marginally". :-)

Comment 4 Fedora Update System 2013-04-08 20:11:42 UTC
bash-completion-2.1-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/bash-completion-2.1-1.fc18

Comment 5 Fedora Update System 2013-04-08 20:12:54 UTC
bash-completion-2.1-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/bash-completion-2.1-1.fc19

Comment 6 Fedora Update System 2013-04-10 01:39:38 UTC
Package bash-completion-2.1-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing bash-completion-2.1-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5298/bash-completion-2.1-2.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-04-18 02:43:52 UTC
bash-completion-2.1-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2013-04-20 20:06:32 UTC
bash-completion-2.1-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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