update 1989/fubar/README.md as per removal of fubar.orig.c
This commit is contained in:
1 parent
7c47ed381b
commit
a44d8ac3ea
1 file changed
+11
-27
+11
-27
@@ -1,4 +1,4 @@
|
||||
Best self-modifying program:
|
||||
# Best self-modifying program:
|
||||
|
||||
Jay Vosburgh
|
||||
Sequent Computer Systems, Inc
|
||||
@@ -7,38 +7,22 @@ Best self-modifying program:
|
||||
97006
|
||||
USA
|
||||
|
||||
Judges notes:
|
||||
## To build:
|
||||
|
||||
make all
|
||||
|
||||
### To run
|
||||
|
||||
./fubar 2
|
||||
|
||||
## Judges' comments
|
||||
|
||||
Run this with a single digit argument (or wait a long time).
|
||||
|
||||
There are 2 versions of this program, the one that was entered,
|
||||
and one that was changed by the judges to be more portable. The
|
||||
makefile runs the latter version by default.
|
||||
|
||||
The blank line at the beginning of the source is mandatory.
|
||||
Do you know why?
|
||||
|
||||
The shell script run by the makefile joins lines that may be
|
||||
cut up by mailers. The file "fubar.orig.c", for example, needs
|
||||
the 6th and 7th lines joined together (with a space between
|
||||
them) to recreate the original entry. If you fix the file, you
|
||||
will need to change the last 8 linnes of "fubar.orig.sh" to read:
|
||||
|
||||
cp fubar.orig.c ouroboros.c
|
||||
chmod +x ouroboros.c
|
||||
csh ouroboros.c $1
|
||||
rm -f ouroboros.c x1 x
|
||||
|
||||
The more portable version, "fubar.c", can be fixed by joining the
|
||||
7th and 8th lines in the same way. As well, if you fix "fubar.c"
|
||||
you will need to also change the last 8 lines to "fubar.sh" to read:
|
||||
|
||||
cp fubar.c ouroboros.c
|
||||
chmod +x ouroboros.c
|
||||
csh ouroboros.c $1
|
||||
rm -f ouroboros.c x1 x
|
||||
|
||||
Selected notes from the author:
|
||||
## Author's comments
|
||||
|
||||
In a nutshell, this is probably the slowest and most
|
||||
obnoxious factorial program ever written. Unfortunately,
|
||||
|
||||
Reference in new issue
Block a user