summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2011-07-21 14:18:08 -0500
committerstanley lieber <stanley.lieber@gmail.com>2011-07-21 14:18:08 -0500
commit58e8b78ffdfaaf2e5e1abd7871e76c5427ed6c29 (patch)
tree6aa10e6c1b2dd66a99987b0c5143d2dbeec6cf39
parent3202d39042623467db4bf51cb583e191f3aa54d2 (diff)
troll: import
-rwxr-xr-xrc/bin/troll2
-rw-r--r--sys/games/lib/trolls6
-rw-r--r--sys/man/1/fortune19
3 files changed, 26 insertions, 1 deletions
diff --git a/rc/bin/troll b/rc/bin/troll
new file mode 100755
index 000000000..f114cce63
--- /dev/null
+++ b/rc/bin/troll
@@ -0,0 +1,2 @@
+#!/bin/rc
+fortune /sys/games/lib/trolls
diff --git a/sys/games/lib/trolls b/sys/games/lib/trolls
new file mode 100644
index 000000000..ddd7c42f1
--- /dev/null
+++ b/sys/games/lib/trolls
@@ -0,0 +1,6 @@
+i'm so glad i live in europe and not america
+azns are such shitty drivers, they should all go back to wherever the fuck they came from and smash each others' cars there
+the wii is actually a pretty technically-advanced console compared to the ps3
+lighttpd is a great drop-in replacement for apache
+you shouldn't really run hdd speed tests under plan9 because the controller drivers are hacked-together open-source shit, something closed-source but official like windows would give a more accurate result
+the british empire had the right idea when they enslaved all those damn niggers
diff --git a/sys/man/1/fortune b/sys/man/1/fortune
index dfae7186a..96349ebef 100644
--- a/sys/man/1/fortune
+++ b/sys/man/1/fortune
@@ -1,11 +1,16 @@
.TH FORTUNE 1
.SH NAME
-fortune \- sample lines from a file
+fortune, troll \- sample lines from a file
.SH SYNOPSIS
.B fortune
[
.I file
]
+.br
+.B troll
+[
+.I file
+]
.SH DESCRIPTION
.I Fortune
prints a one-line aphorism chosen at random.
@@ -14,10 +19,22 @@ If a
is specified, the saying is taken from that file;
otherwise it is selected from
.BR /sys/games/lib/fortunes .
+.LP
+.I
+Troll
+is more specific than
+.I fortune;
+it specializes in inflammatory rhetoric.
.SH FILES
.B /sys/games/lib/fortunes
.br
.B /sys/games/lib/fortunes.index
\ \ fast lookup table, maintained automatically
+.br
+.B /sys/games/lib/trolls
.SH SOURCE
.B /sys/src/cmd/fortune.c
+.br
+.B /rc/bin/troll
+.SH AUTHORS
+Some initial trolls were provided by ChrisPBS.