[Bug 692275] Re: Request bash completion complete for application when file param has no extension, complete to unrecognised extension if only match.

Dan Kegel dank at kegel.com
Wed Apr 16 14:10:03 UTC 2014


This just hit me when I installed Ubuntu 14.04.  Now bash won't complete
   sh name-of-shell-script
unless the shell script ends in .sh.

Filename completion used to be useful, but it's gotten so fancy and
fragile...

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/692275

Title:
  Request bash completion complete for application when file param has
  no extension, complete to unrecognised extension if only match.

Status in “bash-completion” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: bash-completion

  I've repeatedly run into this irritating behaviour with bash-
  completion.  Here's a common situation for me.

  Flash player is being buggy and playing unreliably.  I go to /tmp and try to tab-complete the Flash temp file in mplayer (or in /proc system for new flash which unlinks, whatever).
  But that file has no extension so bash completion fails.

  Another example.  I try to mplayer -loop 0 -fs foo.gif

  But bash completion is unaware that gif is playable by mplayer, and
  refuses to tab complete.  inevitably the gif is from some web page and
  has a name that doesn't copy/paste well, and I could really use bash
  autoescaping and tab completion.

  I'd appreciate it if bash-completion would:
  1) complete for files with no extension regardless of app
  2) if I tab complete for a file and there is only one match, complete it even if you are unaware of whether the app supports it.
  (2) isn't solved by better maintenance of extensions. the gif might be called foo.php and I shouldn't have to rename it.

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/692275/+subscriptions



More information about the foundations-bugs mailing list