IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

1988/dale - Best abuse of system calls

prints command lineusing lots of system calls

Author:

To build:

    make all

Bugs and (Mis)features:

The current status of this entry is:

STATUS: INABIAF - please DO NOT fix

For more detailed information see 1988/dale in bugs.html.

Try:

    ./try.sh

Observe that three of the commands in the script are:

    ./dale these files are in this directory: *
    ./dale $(printf "the following files exist in this directory:\n%s\n" *)
    ./dale "$(printf "the following files exist in this directory:\n%s\n" *)"

As the script asks what do the last two do and why do they do it? Why do they differ in format from the first command? Finally how can you get the more likely desired behaviour?

Judges’ remarks:

This entry has a very twisted flow of control via recursion, iteration and multi-processing. Try to understand what is being done with the system calls.

NOTE: This program assumes the ASCII character set is being used.

Author’s remarks:

No remarks were provided by the author.

Inventory for 1988/dale

Primary files

Secondary files


Jump to: top