mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
__fish_print_hostnames: Fix regex
This used `]` when it should have been `}`, which made the regex nonsensical
Broken since 94c12d84e2 in 2016
This commit is contained in:
@@ -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\.]*:' </etc/fstab |
|
||||
string match -r '^\s*[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:|^[a-zA-Z\.]*:' </etc/fstab |
|
||||
string replace -r ':.*' ''
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user