Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2003 16:54:29 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        freebsd-chat@freebsd.org
Subject:   Re: UNIX Humour
Message-ID:  <20030917215429.GB51544@dan.emsphone.com>
In-Reply-To: <200309172148.h8HLmAC2043520@gate.bitblocks.com>
References:  <3F68D401.4010304@allantgroup.com> <200309172148.h8HLmAC2043520@gate.bitblocks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030917215429.GB51544>