[gutsy, completion] dpkg-deb not getting filenames completed

Bug #138312 reported by Dave Gilbert
4
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Fix Released
Undecided
Mika Fischer

Bug Description

Binary package hint: bash

dpkg-deb only gets option completes for me and doesn't let me complete filenames - even if I put the whole filename in and delete the last few characters it won't complete.

Version: 3.2.0ubuntu9

Revision history for this message
Matthias Klose (doko) wrote :

dpkg-deb doesn't accept filenames as the first parameter.

Changed in bash:
status: New → Invalid
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

hmm, you are right - however I still have a case that doesn't work;

dpkg --fsys-tarfile blah<complete>

it doesn't like to complete for --fsys-tarfile.
(-c etc does seem to work).

Apologies for not being specific previously.

Dave

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Back to New now that I actually put some useful detail in

Changed in bash:
status: Invalid → New
Revision history for this message
Mika Fischer (zoop) wrote :

I can confirm this on a current hardy install. The completions for dpkg and dpkg-deb are mixed. I'll have a look at it when time permits...

Changed in bash-completion:
status: New → Confirmed
Mika Fischer (zoop)
Changed in bash-completion:
assignee: nobody → zoop
status: Confirmed → In Progress
Revision history for this message
Mika Fischer (zoop) wrote :

I've prepared an updated package in my PPA which should fix the bug you reported.

If you're using hardy I'd appreciate it if you could test it and report whether your bug is indeed fixed and also whether you experienced any other regressions.

You can get the package from here:
http://launchpadlibrarian.net/13042048/bash-completion_20060301-3ubuntu2%7Eppa2_all.deb

To install it:
wget http://launchpadlibrarian.net/13042048/bash-completion_20060301-3ubuntu2%7Eppa2_all.deb
sudo dpkg -i dpkg -i bash-completion_20060301-3ubuntu2~ppa2_all.deb

To go back to the original package, do this:
sudo aptitude install bash-completion/hardy

If I don't get reports of regressions I'll try to get this version into hardy.

Thanks for your help!

Changed in bash-completion:
status: In Progress → Fix Committed
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Thanks; that seems to handle the --fsys-tarfile case.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Hi Mika,
  Hmm - I don't know if you would classify this as a regression or not, but there is a change in behaviour on your new version on completion of 'cd';

if I do:

   cd /proc/ <tab>

on the current hardy version I get a list of just the directories (i.e. 1/ 10/ ... sys/ sysvipc/ tty/)
on your new version I see the path prefixed (i.e. /proc/1/ /proc/10/ ... /proc/sys/ )

Not too much of an issue on /proc but if you are completing a long directory path the results are dominated by the
path rather than the leafname you are trying to complete.

Dave

Revision history for this message
Mika Fischer (zoop) wrote :

Hm, ok. That's pretty bad...

So it seems to be impossible to get CDPATH completion, environment vars completion and correct output at the same time...

I'll either have to use stock completion for cd, which would give use env. vars completion and correct output or revert the change which will give us CDPATH completion and correct output...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bash-completion - 20060301-3ubuntu2

---------------
bash-completion (20060301-3ubuntu2) hardy; urgency=low

  * Bugfix release:
   - Fix _get_cword more
   - Fix _command function to correctly prune the command line (LP: #103395)
   - Remove newline from options pattern for dpkg (LP: #138312)
   - Start readline-quoting arguments to compgen (LP: #123665)
   - Save and restore -v shell option (LP: #205444)
   - Prevent glob expansion in _filedir function (LP: #194419)
   - Quote glob expression in tar completion function (LP: #194419)
   - Complete AAS/SSA files for mplayer -sub (LP: #151086)
   - Disable completion of postgresql users and databases (LP: #164772)
   - Use files from UserKnownHostsFile options in addition to standard ones
     (LP: #211180)

 -- Mika Fischer <email address hidden> Sat, 05 Apr 2008 16:09:34 +0200

Changed in bash-completion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.