From d2fc1c47ac3d1c73a81ca1337ce29a3fb3595d49 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 10 Mar 2021 07:17:23 +0100 Subject: [PATCH] __fish_describe_command: Add missing -- Fixes #7809. --- share/functions/__fish_describe_command.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_describe_command.fish b/share/functions/__fish_describe_command.fish index 1bd604ff4..40424eff4 100644 --- a/share/functions/__fish_describe_command.fish +++ b/share/functions/__fish_describe_command.fish @@ -11,7 +11,7 @@ end function __fish_describe_command -d "Command used to find descriptions for commands" # $argv will be inserted directly into the awk regex, so it must be escaped - set -l argv_regex (string escape --style=regex "$argv") + set -l argv_regex (string escape --style=regex -- "$argv") __fish_apropos $argv 2>/dev/null | awk -v FS=" +- +" '{ split($1, names, ", "); for (name in names)