Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24987 - [bash-completion] 'sudo mount' ignores filenames

Attached to Project: Arch Linux
Opened by Adam Nielsen (Malvineous) - Saturday, 02 July 2011, 00:06 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 21 August 2011, 05:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Say I want to type "sudo mount ubcd503.iso ubcd/ -o loop' and I type in 'sudo mount u<tab>'. It refuses to complete the local filename. If I change the word 'mount' to a non-command then it completes correctly.

I am not sure whether this is an upstream bug, as an up to date Debian system does not exhibit this problem, although the md5sums of /etc/bash_completion.d/mount are the same.

Additional info:
* Latest in repo (just updated a few minutes ago)
* Config unchanged/defaults

Steps to reproduce:

mkdir test
cd test
mkdir ubcd
touch ubcd.iso
sudo mount u<tab>
This task depends upon

Closed by  Eric Belanger (Snowman)
Sunday, 21 August 2011, 05:02 GMT
Reason for closing:  Not a bug
Additional comments about closing:  More a bash limitation than a bug.
Comment by Kevin (anonymous_user) - Saturday, 02 July 2011, 12:50 GMT
In your .bashrc or .bash_profile, add this:

complete -cf sudo

Loading...