Subject: Bug#3739: `man -l -' for stdin doesn't work

From: Ian Jackson <[email-masked]>
Date: Tue, 9 Jul 96 23:40 BST

Package: man
Version: 2.3.10-11

The manpage says:
       -l, --local-file
              Activate `local' mode.  Format  and  display  local
              manual  files instead of searching through the sys
              tem's manual collection.  Each manual page argument
              will  be interpreted as an nroff source file in the
              correct format.  No cat file is produced. If '-' is
              listed as one of the arguments, input will be taken
              from stdin.

The latter feature appears not to work properly:

-chiark:~/junk> dpkg --fsys-tarfile /csunix-export1/debian/stable/binary-i386/devel/dist-3.60-6.deb | tar vvxOf - usr/man/man1/packinit.1 | man -l -
-rw-r--r-- root/root      4239 Apr 25 01:51 1996 usr/man/man1/packinit.1
dpkg-deb: subprocess paste killed by signal (Broken pipe)
-chiark:~/junk> dpkg --fsys-tarfile /csunix-export1/debian/stable/binary-i386/devel/dist-3.60-6.deb | tar vvxOf - usr/man/man1/packinit.1 >t        
-rw-r--r-- root/root      4239 Apr 25 01:51 1996 usr/man/man1/packinit.1
-chiark:~/junk> man -l <t -
-chiark:~/junk> man -l t
Reformatting t, please wait...
[ runs less, my PAGER, and displays manual ]
-chiark:~/junk> man -l - <t | wc -l
      0
-chiark:~/junk> man -l t | wc -l
Reformatting t, please wait...
    132
-chiark:~/junk> 

Ian.