LWN.net Logo

useless and useful distinctions

useless and useful distinctions

Posted Jan 27, 2012 12:42 UTC (Fri) by zyga (subscriber, #81533)
In reply to: useless and useful distinctions by angdraug
Parent article: The case for the /usr merge

I kind of like being able to tab-complete $ sudo ...


(Log in to post comments)

useless and useful distinctions

Posted Jan 27, 2012 17:58 UTC (Fri) by iabervon (subscriber, #722) [Link]

In order to tab-complete "sudo ...", your shell needs a rule that what follows "sudo" is found from $PATH, not cwd. If it has a rule, it can have the rule tab-complete based on /usr/bin and /usr/sbin instead of actually using $PATH (which is likely to include things like ~/bin which won't be in root's PATH, as well as not including /usr/sbin).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds