www. O S N E W S .com
News Features Interviews
BlogContact Editorials
The case of double characters when printing man pages
By Thom Holwerda on 2017-08-09 21:50:10

In what's never going to be a regular occurance, I'm linking to a Twitter thread. Chris Espinosa tweets:

Just as I was wrapping up an email and getting ready to leave work, a co-worker rolled his chair over to show me an "interesting" thing.

Go ahead, read it.

UNIX, man. Not even once.

 Email a friend - Printer friendly - Related stories
Read Comments: 1-10 -- 11-20 -- 21-30 -- 31-34
RE[4]: UNIX showing its age again...
By grat on 2017-08-11 13:51:47
> It might be possible that in your environment the control characters are stripped automatically. Maybe your man's roff implementation (nroff, groff, troff, etc) behaves different, maybe the shell changes $PAGER for the process to something else than the traditional "less" upon redirection...

I actually expected the behavior you saw-- even did hexdump -C to verify there are no hidden control characters.

Interestingly, under FreeBSD, I get the behavior described above-- control characters and double-characters for bold text.
Permalink - Score: 2
RE[2]: Comment by Drumhellar
By Andre on 2017-08-11 23:36:27
SkyOS.... I almost forgot about it...
Permalink - Score: 1
RE[2]: To print a man page I usually do...
By Doc Pain on 2017-08-12 19:09:04
> they wanted to email the output [...]

That is quite simple, just use the power of UNIX:

% man rm | mail -s "How to add a remark to files" bob@example.com

Permalink - Score: 2
RE[2]: UNIX showing its age again...
By Nth_Man on 2017-08-14 08:13:34
Yes, the article is really misleading...

A simple
  &nb sp;  man to pdf
search in Google showed a simple way to get a pdf file from `man bash`:
  &nb sp;  man -t bash | ps2pdf - bash.pdf

Edited 2017-08-14 08:16 UTC
Permalink - Score: 2

Read Comments 1-10 -- 11-20 -- 21-30 -- 31-34

No new comments are allowed for stories older than 10 days.
This story is now archived.

News Features Interviews
BlogContact Editorials
WAP site - RSS feed
© OSNews LLC 1997-2007. All Rights Reserved.
The readers' comments are owned and a responsibility of whoever posted them.
Prefer the desktop version of OSNews?