From d99c19cc033a6ace2282dcb56a1e90fe5569da21 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 22 Sep 2019 19:01:41 +0200 Subject: [PATCH] Fix completions for chown (#6132) Reproducer: type `chown --f` --- share/completions/chown.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/chown.fish b/share/completions/chown.fish index 11eb6fae7..5d72dfd24 100644 --- a/share/completions/chown.fish +++ b/share/completions/chown.fish @@ -9,4 +9,4 @@ complete -c chown -s v -l verbose -d "Output diagnostic for every file" complete -c chown -s h -l help -d "Display help and exit" complete -c chown -l version -d "Display version and exit" complete -c chown -d "Username" -a "(__fish_print_users):" -complete -c chown -d "Username" -a "(string match -r '.*:' (commandline -ct))(__fish_complete_groups)" +complete -c chown -d "Username" -a "(string match -r -- '.*:' (commandline -ct))(__fish_complete_groups)"