From 165ba535f0ce885d7c1ebc0676a163268912a242 Mon Sep 17 00:00:00 2001 From: "David Adam (zanchey)" Date: Tue, 27 Nov 2012 11:47:35 +0800 Subject: [PATCH] use getent for hosts if available, otherwise use more resilient processing of /etc/hosts --- share/functions/__fish_print_hostnames.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish index 52efc7313..71b8faf6e 100644 --- a/share/functions/__fish_print_hostnames.fish +++ b/share/functions/__fish_print_hostnames.fish @@ -2,8 +2,10 @@ function __fish_print_hostnames -d "Print a list of known hostnames" # Print all hosts from /etc/hosts - if test -f /etc/hosts - sed