mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-26 05:03:28 +00:00
fix regex quoting in $print_bash_completion
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
ea5a508493
commit
2c48a66569
@ -316,7 +316,7 @@ my $print_bash_completion = sub {
|
|||||||
shift @$args; # no need for program name
|
shift @$args; # no need for program name
|
||||||
my $print_result = sub {
|
my $print_result = sub {
|
||||||
foreach my $p (@_) {
|
foreach my $p (@_) {
|
||||||
print "$p\n" if $p =~ m/^$cur/;
|
print "$p\n" if $p =~ m/^\Q$cur\E/;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user