mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08: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:
parent
1a11cee559
commit
2b0e3ba3b8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user