On Fri, Jun 26, 2009 at 04:00:29PM -0400, Michael Leuchtenburg wrote:
> Roger Burton West wrote:
> >On Fri, Jun 26, 2009 at 03:47:49PM -0400, Numien wrote:
> >>On 06/26/2009 03:37 PM, Michael Leuchtenburg wrote:
> >>>This requirement is so unclear it could only possibly lead you to
> >>>hateful software.
> >>There is another kind?
> >
> >Software that hasn't been written yet?
> >
> 
> Hello World isn't too hateful. So long as it isn't GNU hello.

I offer you this software that I've only just written. I don't think that
it's that hateful:

$ cat goodbye_world.c 
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv) {
    puts("Goodbye world.");
    return remove(argv[0]);
}
$ gcc -Wall -o goodbye_world goodbye_world.c 
$ ./goodbye_world 
Goodbye world.
$ ./goodbye_world 
bash: ./goodbye_world: No such file or directory

[likely won't be usefully portable to any OS that forbids deleting open files,
and keeps the files corresponding files open.]

Nicholas Clark

Reply via email to