mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
__fish_seen_subcommand_from: don't clobber global variable
This commit is contained in:
@@ -5,6 +5,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
function __fish_seen_subcommand_from
|
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
|
string match -rq -- '^'$regex'$' $argv
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user