Skip to content

Commit

Permalink
Escaping qualified method names in missing-methods.p6
Browse files Browse the repository at this point in the history
This is so that special characters don't get interpreted by the shell when
running the command through qqx{}.
  • Loading branch information
paultcochrane committed Feb 22, 2015
1 parent 2fc99dd commit b525111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/missing-methods.p6
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ sub methods-in-type($type) {
}

sub show-undoc-method(Str $qualified_method_name) {
my $doc_output = qqx{PAGER=cat ./bin/p6doc -f $qualified_method_name};
my $doc-lookup-command = "PAGER=cat ./bin/p6doc -f \'$qualified_method_name\'";
my $doc_output = qqx{$doc-lookup-command};
say "$qualified_method_name" if $doc_output ~~ m:s/No documentation found/;
}

Expand Down

0 comments on commit b525111

Please sign in to comment.