[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#732237: info: Output from a man page (cat version) contains still a part of an escape sequence



On Mon, Dec 16, 2013 at 08:37:34AM +0900, Norbert Preining wrote:
> tags 732237 moreinfo unreproducible
> severity 732237 minor
> thanks
> 
> Hi
> 
> >   The output of "info bash" contains text of the type '<number>m',
> > which is the last part of an escape sequence.  This happens when the
> > input file is taken from the directory /var/cache/man/cat?/, as it then
> > contains escape sequences.
> 
> I cannot reproduce it in any way. I thought it might be the caching of
> man pages, but even after reconfiguring man-db to use caching, running
> a few man pages as root and user, I still don't see any change in the
> output of info.
> 
> Could it be that you have some left-overs hanging around?
> 

  I think not.  I checked the cat page file that was produced after
issuing the info and man commands (deleting the cat file after
checking).  These commands result in cat page files with different
control characters.

  "info" results in a cat page file containing the control character ^H
(BS, backspace), but the file from "man" contains escape sequences like
"ESC[1m...ESC[0m"  (for bold, and eventually dependent on TERM)

  I think that root always produces a cat page file, when man is run.

I use man version 2.6.2-1.

-- 
Bjarni I. Gislason


Reply to: