From 0970487cca3662ebf26be3a7d7400e2d0bdef3e2 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 3 Apr 2013 18:46:50 -0700 Subject: [PATCH] Some spaces to tabs in __fish_print_hostnames --- share/functions/__fish_print_hostnames.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish index 7e4c23bff..423f9952d 100644 --- a/share/functions/__fish_print_hostnames.fish +++ b/share/functions/__fish_print_hostnames.fish @@ -4,20 +4,20 @@ function __fish_print_hostnames -d "Print a list of known hostnames" # Print all hosts from /etc/hosts if test -x /usr/bin/getent getent hosts | tr -s ' ' ' ' | cut -d ' ' -f 2- | tr ' ' '\n' - else if test -r /etc/hosts + else if test -r /etc/hosts tr -s ' \t' ' ' < /etc/hosts | sed 's/ *#.*//' | cut -s -d ' ' -f 2- | sgrep -o '[^ ]*' end # Print nfs servers from /etc/fstab - if test -r /etc/fstab + if test -r /etc/fstab sgrep