]> git.proxmox.com Git - pve-common.git/commitdiff
fix regex quoting in $print_bash_completion
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Jun 2018 07:04:47 +0000 (09:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Jun 2018 07:09:10 +0000 (09:09 +0200)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
src/PVE/CLIHandler.pm

index a7ced38a41ccd04662297d8d5d0ab0c6c74a1bf7..acdeffed29f994df66ad6b111292d58e7d5d24a5 100644 (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/;
        }
     };