Bugs item #311821, was opened at 2009-07-11 10:04 by Sung Pae You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311821&group_id=100114
Status: Open Priority: 3 Submitted By: Sung Pae (guns-guest) Assigned to: Nobody (None) Summary: _known_hosts_real completing both known hosts and hostnames is excessive Distribution: None Originally reported in: None Milestone: None Status: None Original bug number: Initial Comment: Hello, The new _known_hosts_real function now completes hostnames from /etc/hosts, in addition to any hosts from the global and user known_hosts files. This differs from the old function, which completed EITHER hosts from the known_hosts files OR from /etc/hosts. The new behaviour is much less useful for me for two reasons: 1) I have dozens of custom entries in /etc/hosts for local web development. e.g: 127.0.0.1 example.dev 127.0.0.1 anotherexample.dev Since I use the convention of replacing the real domain's TLD with 'dev' for local development, ssh completion for the real server always faces a collision with its local '*.dev' sibling. I have local host entries for almost every server I ssh into, so this gets irritating. I am looking to use a local BIND server in the near future, but I know plenty of web programmers use the hosts file in the same fashion that I do. 2) I have thousands of entries in /etc/hosts for ad-blocking A popular, and mostly effective, method for blocking ads and malware is to add entries directing thousands of domains to 127.0.0.1. Whether or not this is an abuse of the hosts file, it is a relatively popular use of it. It does, however, render standard hostname completion useless. -- For these reasons, please consider changing the standard behaviour of _known_hosts_real as before, completing hosts from the _known_hosts file OR from /etc/hosts if no known_hosts files are found. ---------------------------------------------------------------------- You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311821&group_id=100114 _______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
