From 2b0e3ba3b883e06f43da92d4bf65db1ac996f534 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 11 Jul 2023 20:50:26 +0200 Subject: [PATCH] __fish_print_hostnames: Fix regex This used `]` when it should have been `}`, which made the regex nonsensical Broken since 94c12d84e267bf6603022907e6a791fa596d8c31 in 2016 --- share/functions/__fish_print_hostnames.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish index 7f025f8af..147d43144 100644 --- a/share/functions/__fish_print_hostnames.fish +++ b/share/functions/__fish_print_hostnames.fish @@ -19,7 +19,7 @@ function __fish_print_hostnames -d "Print a list of known hostnames" # Print nfs servers from /etc/fstab if test -r /etc/fstab - string match -r '^\s*[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3]:|^[a-zA-Z\.]*:'