UNIX Humour
Dan Nelson
dnelson at allantgroup.com
Wed Sep 17 14:54:32 PDT 2003
In the last episode (Sep 17), Bakul Shah said:
> Don't you mean:
>
> #if 0 /* Magic self-executing C source code. Run "hello.c"
> gcc -Wall -O $0 -o ${0%%.c}
> ${0%%.c}
> rm ${0%%.c}
> exit 0
>
> */
> #endif
The original comment was supposed to read "self-compiling", but I like
your modification too :) Don't forget the set -x, or a compile error
will result in errors running and removing ${0%%.c}.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-chat
mailing list