From 2c48a66569f4e013ace2f90b489016b471250491 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 14 Jun 2018 09:04:47 +0200 Subject: [PATCH] fix regex quoting in $print_bash_completion Signed-off-by: Dietmar Maurer --- src/PVE/CLIHandler.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index a7ced38..acdeffe 100644 --- a/src/PVE/CLIHandler.pm +++ b/src/PVE/CLIHandler.pm @@ -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/; } }; -- 2.39.2