Comment 6 for bug 661775

Revision history for this message
Florian Schmidt (flosch42) wrote :

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?