From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25557 invoked by alias); 5 Nov 2016 20:54:15 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22090 Received: (qmail 6720 invoked from network); 5 Nov 2016 20:54:15 -0000 X-Qmail-Scanner-Diagnostics: from mout.gmx.net by f.primenet.com.au (envelope-from <400thecat@gmx.ch>, uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.227.15.18):SA:0(0.6/5.0):. Processed in 0.469951 secs); 05 Nov 2016 20:54:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: 400thecat@gmx.ch X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.net designates 212.227.15.18 as permitted sender) Message-ID: <581E46EE.2070605@gmx.ch> Date: Sat, 05 Nov 2016 21:54:06 +0100 From: Fourhundred Thecat <400thecat@gmx.ch> MIME-Version: 1.0 To: Bart Schaefer , zsh-users@zsh.org Subject: Re: hostname completion for ssh / scp References: <581B8BCE.2040108@gmx.ch> <161104214237.ZM18518@torch.brasslantern.com> <581D9E98.1000008@gmx.ch> <161105102455.ZM20692@torch.brasslantern.com> <581E2AE5.4040006@gmx.ch> <161105132953.ZM17234@torch.brasslantern.com> In-Reply-To: <161105132953.ZM17234@torch.brasslantern.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:r7GYKZf+5Mc3LzcIPpHhw9TYDvZTQ6R7l9OEBhTYwtpNgLz5tr1 XxTnZFfjJZ0Xn940P19plRdM68YAMShp6NVkYu4yopFFoEzl6oQYobc6Pk4MuJhO87n6zaH gjOE3j8PnleE6WwSyRmU/HWAFsXmD4AZtBJGjZyYEOL94XgNL+BwE+ZA0kVvK/tJSwW4bI5 mGuuUIKYPiJ70L/aYMFrQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:afb60TnoaAw=:FwZgOFUykle4H1Q58tmTJK N35yoeAjc6K3dTcHCjk/FP4iwzHceqQrXECYq/BZpmiGkz5z1EM/uGKAMqPli0i5aadOb0aP8 ue0SqtkUHytYBvoqvYrS4ChYdU8JR6MM2eTT4dZcDWzFNfrc1QK+CBqzY6NuEkJxiGMjpIqhV o0qeiMr1LFaik7FdMo3FbD29HiM7Q6kENW8YX7kY8AVrS+oNzFso3MOcYF//IuH17q+LpvUI8 9zI+A5SzkPr5mszwbOMgkVRxvQ2dB1SLx6BgXahu0hv+zCyApp+o50nglWqSbsoI6hQW4GkMD zDreB5DA2/SO3soQ3kT57EuMofERVBllenGdP6QoAMvwTVbymNqrzgSEpHWcF2jY1MFIm//G6 hjed6Dnr0ytwqn9y933KcJwBku2XO8CdjPdFtpnkw9nbuzaQnohm7vihoql4XC0SbrlZMiATA Wnkcscq6BVNODkjRy7Nkj8EzOGoobZklMozlq8bIZmJ00SDsIoBAQ07a+IDd8APoLY+o4zmWk A6YKe9rikE9/kdIL3k3NtQXPTYh6BxG0FXx7eejy+dW8ZzKqibHoKLmtXjg4l8XrGFwbtfcY6 UejMAKqn41qgu/h6/prxcpEAr6Rbcov/ppb50v2OP7rP5SH97nzFwZ/zlL96qASxZB2EFUKYz 6OMSE23Cdx7l/sVk69qpYbJB5WHjtAzOi6xzVPQkZmOxt1yXoLMOa/4834uW6Zy5ggfcU+FB7 OXf2Z3b56RZZlbaRgKFoqmgUJI6Wd0uSIqibMfNgsP06CmP9TcXBy6GlpRTZUk8DnAvHS0ovb q11OeNi > On 2016-11-05 21:29, Bart Schaefer wrote: > On Nov 5, 7:54pm, Fourhundred Thecat wrote: > > /etc/hosts is a file read by the DNS resolver library to look up IPs > for hosts that either aren't found in DNS, or that locally need to > use a different IP than the one found by a network DNS lookup. It > is not there for purposes of configuring completions in the shell, > and lines that don't have an IP address are useless for the intended > purpose of the file. > > Read "man 5 hosts". Bash might let you use it the way you say by way > of a non-strict parse of the contents, but that doesn't make it right. I agree. That it works in bash, does not make it right. It is a useful feature nevertheless.