[Bash-completion-devel] Bug#708173: perldoc: look for .pod in addition to .pm files (patch included)

Carl Hayter zengargoyle at gmail.com
Mon May 13 18:16:52 UTC 2013


Package: bash-completion
Version: 1:2.0-1
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Reading Perl module documentation which often has FooBar::Tutorial
type documentation which is in .../FooBar/Tutorial.pod (.pod) files
instead of regular (.pm) files.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

$ perldoc Promises::<TAB><TAB>

   * What was the outcome of this action?

$ perldoc Promises::
Deferred Promise

   * What outcome did you expect instead?

$ perldoc Promises::
Cookbook::ChainingAndPipelining   Cookbook::TIMTOWTDI
Cookbook::ScalaFuturesComparison  Deferred
Cookbook::SynopsisBreakdown       Promise


Here's a trivial patch:

--- /usr/share/bash-completion/helpers/perl.orig        2013-05-13 06:25:09.163377047 -0700
+++ /usr/share/bash-completion/helpers/perl     2013-05-13 04:10:34.523819280 -0700
@@ -23,8 +23,8 @@
     chdir($dir) or return;
 
     # print each file
-    foreach my $file (glob('*.pm}')) {
-        $file =~ s/\.pm$//;
+    foreach my $file (glob('*.{pm,pod}')) {
+        $file =~ s/\.(?:pm|pod)$//;
         my $module = $base . $file;
         next if $module !~ /^\Q$word/;
         next if $seen{$module}++;



-- System Information:
Debian Release: jessie/sid
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash  4.2+dfsg-1
ii  dpkg  1.16.10

bash-completion recommends no packages.

bash-completion suggests no packages.

-- debconf-show failed



More information about the Bash-completion-devel mailing list