fix regex quoting in $print_bash_completion

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2018-06-14 09:04:47 +02:00 committed by Thomas Lamprecht
parent ea5a508493
commit 2c48a66569

View File

@ -316,7 +316,7 @@ my $print_bash_completion = sub {
shift @$args; # no need for program name
my $print_result = sub {
foreach my $p (@_) {
print "$p\n" if $p =~ m/^$cur/;
print "$p\n" if $p =~ m/^\Q$cur\E/;
}
};