From 4e0cb5d3e9719ab0ae583be3363123ea99e07d17 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 20 Jul 2024 13:09:59 +0200 Subject: [PATCH] __fish_seen_subcommand_from: don't clobber global variable --- share/functions/__fish_seen_subcommand_from.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_seen_subcommand_from.fish b/share/functions/__fish_seen_subcommand_from.fish index 117607a85..fe9203cdf 100644 --- a/share/functions/__fish_seen_subcommand_from.fish +++ b/share/functions/__fish_seen_subcommand_from.fish @@ -5,6 +5,6 @@ # function __fish_seen_subcommand_from - set regex (string escape --style=regex -- (commandline -pxc)[2..] | string join '|') + set -l regex (string escape --style=regex -- (commandline -pxc)[2..] | string join '|') string match -rq -- '^'$regex'$' $argv end