perldoc completion dies if MANPAGER is set

Bug #738408 reported by Scott Bronson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Fix Released
Undecided
David Paleino

Bug Description

Binary package hint: bash-completion

If MANPAGER is set, the perldoc completion tries to launch your pager, screwing up your terminal..

This is because it uses "PAGER=/bin/cat man perl" to pull some completions out. However, MANPAGER and PERLDOC_PAGER both override PAGER.

The enclosed patch fixes this: it just unsets MANPAGER and PERLDOC_PAGER when generating the completions so the output goes to /bin/cat as intended.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: bash-completion 1:1.1-3ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-29.58-generic-pae 2.6.32.28+drm33.13
Uname: Linux 2.6.32-29-generic-pae i686
NonfreeKernelModules: fglrx
Architecture: i386
Date: Sat Mar 19 13:21:15 2011
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100224.1)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: bash-completion

Revision history for this message
Scott Bronson (bronson) wrote :
Revision history for this message
Scott Bronson (bronson) wrote :

Found this on Lucid but it's a problem in Natty too.

tags: added: patch
Revision history for this message
Scott Bronson (bronson) wrote :

Same bug on Red Hat, looks like the fix went upstream: https://bugzilla.redhat.com/show_bug.cgi?id=689180

David Paleino (dpaleino)
Changed in bash-completion (Ubuntu):
assignee: nobody → David Paleino (dpaleino)
status: New → Incomplete
status: Incomplete → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bash-completion - 1:1.3-1ubuntu5

---------------
bash-completion (1:1.3-1ubuntu5) oneiric; urgency=low

  * patches/100_upstart.patch: New bash completion for upstart.
    (LP: #535172)
  * patches/101_bash_completion.oga_ogv.patch: Increase support for other
    OGG formats including .oga, .ogx, etc.
    (LP: #311525)
  * patches/102_manpager.patch: Override MANPAGER when generating perldoc
    completions.
    (LP: #738408)
  * patches/103_colormake.patch: Add support for colormake to the make
    completion rules.
    (LP: #743208)
 -- Bryce Harrington <email address hidden> Mon, 03 Oct 2011 22:33:39 -0700

Changed in bash-completion (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.