Do you get auto-completion for both devices and directories? 
Say, as an example, we have a DVD drive accessible through /dev/dvd0, and a 
directory /path/to/dvd that contains a VIDEO_TS folder with DVD-format videos. 
I then notice the following:

Current behavior:
$ mplayer -dvd-device /dev/dv<TAB> 
results in 
$ mplayer -dvd-device /dev/dvd0

However
$ mplayer -dvd-device /path/to/d<TAB>
results in no found matches, i.e., nothing at all happens:
$ mplayer -dvd-device /path/to/d

The patch changes the behavior of the latter to complete the path to
"/pat/to/dvd".

After some thinking, I changed the patch on my side and will upload the new 
version. The behavior after the patch is now:
1) for -cdrom-device it does not change the current behavior at all, because 
mplayer's manpage does not specify whether it is sensible or even possible to 
use directories or ISO images for this option, and I don't have any Video CDs 
here to test it.
2) for -dvd-device it also, in addition to the current completion behavior, 
takes into account .iso files and directories in the completion, because 
mplayer can read DVDs from ISO images or directories.

I will add the new patch to show the difference (it's only one line). Though 
I'm not sure, if other people can not reproduce the behavior, if it makes sense 
to pursue this bug. However, it would be weird if I was stung by a 
configuration problem that only occurs in my setup?
Also, I'm not sure whether it is the best idea to provide a patch for an /etc/ 
file, i.e., the location after the installation of the bash-completion package. 
But I guess that's something that the maintainer should decide?

-- 
completion for "mplayer -(cd|dvd)-device" should also complete directory names
https://bugs.launchpad.net/bugs/661775
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to