mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:47:04 +08:00
__fish_seen_subcommand_from: don't clobber global variable
This commit is contained in:
parent
6feec60a8e
commit
4e0cb5d3e9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user