mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user