Also fix some options handling and errors in unusual usecases (Alioth: #313498).
Patch is partially written by Lekensteyn <lekensteyn@gmail.com>
Reviewed-by: Sergey V <sftp.mtuci@gmail.com>
* mount:
testsuite: Add basic tests for umount.
umount: Real fix for completion of relative paths.
umount: Half-fix for completion of relative paths.
mount: Don't suggest short options.
mount, umount: Add linux-specific completions.
This linux-specific completion won't parse /etc/fstab as a lot of people
including myself find it useless. And there is no reliable way to guess
what user wants to mount. Some examples of what is ok for mount:
$ mount /home
$ mount /dev/sda1 /home
$ mount file.iso /media/iso -o loop
$ mount LABEL=mydisk /media/disk
It is more sane to provide just filenames completion for mount.