From: Pietro Gagliardi <pietro10@mac.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] file heuristics on troff input
Date: Fri, 11 Jul 2008 10:44:30 -0400 [thread overview]
Message-ID: <6D8E96FF-B605-446F-A022-0B41A2B1B28A@mac.com> (raw)
Just a bit of humor:
COMPUTER ME
% cd troff
% file *
advp9prog: directory yes (old attempt at plan 9 programmer's
guide)
algoawk: directory yes (awk book)
bentley.ms: troff -ms input yes (Bentley paper)
bentley2.ms: Ascii text wtf? (Bentley paper retry)
cod.ms: troff input why not -ms? (paper on calculator program
I'm writing)
cod.ms.part: Ascii file doesn't understand .ig and pic? (part of
cod.ms that doesn't belong yet)
forloop.ms: Ascii this is pic input (flowchart on how for loops
work in JavaScript)
jstut.ms: HTML file very wrong (JavaScript tutorial)
luxidejavu.ms: troff input fine (ripped from p9port, -ms .FP with
DejaVu and Luxi Sans)
programming.ms: c program no one would dare put a program that big
into one file, stupid (new attempt at programming tutorial, you'll see
it when it's done)
school: directory good (stuff for school)
% file advp9prog/*
adv9prog/ch1: Ascii wtf?
adv9prog/ch2: c program not again
adv9prog/dates: short Ascii all right (I date evereything for
record keeping purposes)
adv9prog/mkfile: short Ascii don't you know about mk?
% file algoawk/*
algoawk/book_macros: Ascii ?
algoawk/ch1: Ascii text oh my gawd, something different!
algoawk/colophon: Ascii ...
algoawk/dates: short Ascii good
algoawk/intro: Ascii no
algoawk/mkfile: Ascii still no mk...
algoawk/show: rc executable file right
% file school/*
... To save you the trouble, they're either directories or -
ms input, but either showing "directory" or "Ascii."
A full report of my troff directory and subdirectories is in /n/
sources/contrib/pietro/file.funny.
So that's only one file that is absolutely correct. It turns out that
the problem is file isn't reading the
.FP font
as a troff -ms macro line. In the books, they don't read enough lines
to see that there are more .PPs than there are #includes. Ah well.
And if you thought that was funny, look at the example of a file that
actually seeks to more than one line from UNIX in "The UNIX-HATERS
Handbook" (now a free PDF from its authors).
next reply other threads:[~2008-07-11 14:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-11 14:44 Pietro Gagliardi [this message]
2008-07-11 16:11 ` hiro
2008-07-11 17:30 ` Pietro Gagliardi
2008-07-11 16:55 ` C H Forsyth
2008-07-11 17:00 ` Iruata Souza
2008-07-14 16:33 ` Russ Cox
2008-07-14 17:55 ` roger peppe
2008-07-14 18:48 ` erik quanstrom
2008-07-15 20:07 erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6D8E96FF-B605-446F-A022-0B41A2B1B28A@mac.com \
--to=pietro10@mac.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).