[Bash-completion-devel] [bash-completion-Bugs][312648] Mplayer bash completion not working for files without an extension

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Mon Aug 9 18:50:57 UTC 2010


Bugs item #312648, was changed at 08/08/2010 20:38 by Raphaël Droz
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312648&group_id=100114

Status: Open
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Mplayer bash completion not working for files without an extension 
Distribution: None
Originally reported in: Ubuntu Launchpad
Milestone: None
Status: None
Original bug number: 615042


Initial Comment:
The core of the issue is that mplayer can play files without an extension, but bash completion does not work for files that do not have an extension. Below is a more detailed description.



Enter directory like /tmp while watching a video on YT. Pause it inside your browser to watch in way more responsible player like MPlayer.

Type as usual: mplayer Flash[Tab]

What happens? bash won't fill up the command with appropriate file name, because it's got none of expected extensions like mpeg, rmvb etc.

MPlayer plays FLV videos flawlessly and doesn't require an extension to be present as eg. FourCC technologies are being utilised to recognize codecs used to encode multimedia file.

bash even without help of additional libraries can recognize type of a file without an extension:

$ file FlashXX9kNLBj
FlashXX9kNLBj: Macromedia Flash Video

It would be great if completion rules would somehow use /usr/bin/file utility to require no extension at minimum.

----------------------------------------------------------------------

Comment By: Raphaël Droz (gibboris-guest)
Date: 09/08/2010 18:50

Message:
bad idea IMHO, it would imply *a lot* overhead while you can just invoke the bash built-in file-completion with ALT + /


----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312648&group_id=100114



More information about the Bash-completion-devel mailing list