[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
Tue Nov 15 23:22:39 UTC 2011


Bugs item #312648, was changed at 2010-08-09 00:38 by Igor Murzov
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312648&group_id=100114

>Status: Closed
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: Won't Fix
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: Igor Murzov (garik-guest)
Date: 2011-11-16 03:22

Message:
This is definitely not a bug. Won't fix.

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

Comment By: Raphaël Droz (gibboris-guest)
Date: 2010-08-09 22: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