From c71a2e573f059420f8c141dd8545da179d4abb9d Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 23 Nov 2021 18:12:38 +0100 Subject: [PATCH] Fix __fish_seen_argument Fixes #8478 --- share/functions/__fish_seen_argument.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_seen_argument.fish b/share/functions/__fish_seen_argument.fish index fe1c4e82a..170bd4fa1 100644 --- a/share/functions/__fish_seen_argument.fish +++ b/share/functions/__fish_seen_argument.fish @@ -5,7 +5,7 @@ function __fish_seen_argument --description 'Check whether argument used' set -e cmd[1] for t in $cmd for s in $_flag_s - if string match -qr "^-[A-z0-9]*$s[A-z0-9]*\$" -- $t + if string match -qr "^-[A-z0-9]*"$s"[A-z0-9]*\$" -- $t return 0 end end