From 1ca1667786f55f701ca8ccf841766a135fa6382e Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Mon, 28 Nov 2016 17:13:01 -0800 Subject: [PATCH] fix bug introduced by fish_indent Commit 11a60c8 restyled all the fish scripts using fish_indent. Sadly a bug in fish_indent did not correctly reformat an unusual structure. --- share/functions/__fish_print_hostnames.fish | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish index 2f192c93a..93d5e3e64 100644 --- a/share/functions/__fish_print_hostnames.fish +++ b/share/functions/__fish_print_hostnames.fish @@ -9,9 +9,8 @@ function __fish_print_hostnames -d "Print a list of known hostnames" # Ignore zero ips getent hosts | string match -r -v '^0.0.0.0' | string replace -r '[0-9.]*\s*' '' | string split " " else if test -r /etc/hosts - # Ignore commented lines and functionally empty lines - string match -r -v '^\s*0.0.0.0|^\s*#|^\s*$'