[Bug 724522] New: Remove broken sudo bash autocomplete change from bug #639744
https://bugzilla.novell.com/show_bug.cgi?id=724522 https://bugzilla.novell.com/show_bug.cgi?id=724522#c0 Summary: Remove broken sudo bash autocomplete change from bug #639744 Classification: openSUSE Product: openSUSE 12.1 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jdmulloy@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1 In OpenSUSE 11.4 a change was made to /etc/profile.d/complete.bash that causes autocomplete to also search in /sbin, /usr/sbin and /usr/local/sbin. While it seems like a good idea it actually breaks autocompelete without yielding the intended functionality. The idea was that by making this change a user could type in something like "sudo fdi" hit tab and have it autocomplete to "sudo fdisk". This part works, unfortunately if you actually try to run it you get this error "sudo: fdisk: command not found" because /sbin is not in the users $PATH which is the correct behavior. In order to use a program in /sbin like fdisk you have to type "sudo /sbin/fdisk". Unfortunately with this change to /etc/profile.d/complete.bash if you type in "sudo /sb" and hit tab it autocompletes to "sudo /sbin " and you have to hit backspace, enter / and then continue. This problem was solved in bug #673663 for sudo arguments after the first one. I would recommend undoing the changes that resolved bug #639744 since it's useless to have bash autocomplete executables from /sbin since they aren't in the users $PATH anyway and it just breaks autocomplete. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724522
https://bugzilla.novell.com/show_bug.cgi?id=724522#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=724522
https://bugzilla.novell.com/show_bug.cgi?id=724522#c1
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=724522
https://bugzilla.novell.com/show_bug.cgi?id=724522#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=724522
https://bugzilla.novell.com/show_bug.cgi?id=724522#c3
--- Comment #3 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com