PDA

View Full Version : una nuova pagina man?


gurutech
05-11-2003, 22:04
ho notato che questa (http://www.thinkgeek.com/tshirts/frustrations/5b7e/) pagina man non si trova nell'installazione di nessun *nix, perchè non crearla da zero?
si accettano proposte in questo 3D...

VICIUS
05-11-2003, 22:13
forse il piu grande mistero della vita. :rolleyes:

ciao ;)

ilsensine
05-11-2003, 22:27
bè...
...basta mettere un alias per man su questo script :D


#!/bin/bash
if [ "$1" = "woman" ]; then
gcc -E -o /tmp/dump.cpp - <<EOF
int main() {
int *x = '\0';
return *x;
}
EOF
gcc -o /tmp/dump.w /tmp/dump.cpp
setsid /tmp/dump.w
rm -f /tmp/dump.w /tmp/dump.cpp
else
/usr/bin/man $@
fi

gurutech
05-11-2003, 22:51
ma questa eventuale pagina man la mettiamo sotto la sezione 6 o sotto la sezione 8 ?

già mi immagino:

WOMAN(6) System Games Manual WOMAN(6)

NAME
woman - insoluble puzzle

SYNOPSIS
woman -vhTD

DESCRIPTION
woman is a two player game were the object is to get a date without
spending all of your resources.
Once installed on your system, woman can't be uninstalled without
paying a fee to woman herself.
Use with caution.
The options are:

-v Verbose. This is the default behavior.

-h help or headache

-T Take all resources. You can't do anything without her written
approval.

-D Debug. No one has never finished this task.



P.S. per le donne del forum: non vi offendete! scherzo :)

ilsensine
06-11-2003, 08:04
Originariamente inviato da gurutech
-v Verbose. This is the default behavior.

LOL