Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2003 14:48:10 -0700
From:      Bakul Shah <bakul@bitblocks.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-chat@freebsd.org
Subject:   Re: UNIX Humour 
Message-ID:  <200309172148.h8HLmAC2043520@gate.bitblocks.com>
In-Reply-To: Your message of "Wed, 17 Sep 2003 16:37:05 CDT." <3F68D401.4010304@allantgroup.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Don't you mean:

cat > hello.c <<EOF
#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

#include <stdio.h>
int main(void)
{
     printf ("Hi there!\n");
     return 0;
}
EOF
chmod +x hello.c
hello.c
Hi There!



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