Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: hostname completion for ssh / scp



> On 2016-11-05 21:31, Daniel Shahaf wrote:
> Fourhundred Thecat wrote on Sat, Nov 05, 2016 at 19:54:29 +0100:
>> Not true. IP address is not mandatory in /etc/hosts. You can leave it
>> out, and only have hostnames.
> 
> The IP address is mandatory on both Linux and FreeBSD, according to
> their respective hosts(5) man pages.
> 
> Does hosts(5) on your system make the IP address optional?  Or are you
> simply saying that you put in /etc/hosts a line with no IP address, and
> bash's hostname completion used hostnames from that line?

no, man hosts on my system (Debian) does not explicitly say that IP is
optional. You are right. I am saying that if you omit the IP address,
everything works fine, and all applications understand that, and
bash-completion completes these hostnames for all networking applications.



Messages sorted by: Reverse Date, Date, Thread, Author