From c06a71bfbe3dc2f118e44ce6ae8d7a62171b708c Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 3 May 2017 23:36:25 +0200 Subject: [PATCH] Stringify hg completions --- share/completions/hg.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/hg.fish b/share/completions/hg.fish index 39dd14b4d..c48ef9eb6 100644 --- a/share/completions/hg.fish +++ b/share/completions/hg.fish @@ -237,7 +237,7 @@ end function __fish_hg_help_topics set -l commands (__fish_hg debugcomplete) printf "%s\tcommand\n" $commands - for line in (__fish_hg help | grep "^ [a-zA-Z]") + for line in (__fish_hg help | string match -re '^ [a-zA-Z]') set -l parts (string trim $line | string split " " -m 1) set -l topic $parts[1] if not contains $topic $commands