that inssane sh'ism compile if necessary and run this .c file.

Comes from http://stackoverflow.com/questions/12830/most-elegant-amusing-or-strange-code-one-liners/12907#12907
This commit is contained in:
Gwenhael Le Moine 2011-07-01 19:29:23 +02:00
parent e5ea31e69e
commit a4ae3a6f83

2
star.c
View file

@ -1,3 +1,5 @@
//&>/dev/null;x="${0%.*}";[ ! "$x" -ot "$0" ]||(rm -f "$x";cc -lncurses -o "$x" "$0")&&"$x" $*;exit
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>