mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
__fish_seen_subcommand_from: fix regression causing false negatives given multiple arguments
Fixes 2bfa7db7bc (Restructure __fish_seen_subcommand_from, 2024-07-07)
Fixes #11685
This commit is contained in:
@@ -6,5 +6,5 @@
|
||||
|
||||
function __fish_seen_subcommand_from
|
||||
set -l regex (string escape --style=regex -- (commandline -pxc)[2..] | string join '|')
|
||||
string match -rq -- "^$regex"'$' $argv
|
||||
string match -rq -- "^($regex)\$" $argv
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user