From a4ae3a6f83df4a38cb9c060738fab9cbbd04c78b Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 1 Jul 2011 19:29:23 +0200 Subject: [PATCH] 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 --- star.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/star.c b/star.c index 85b5984..ee0e0ac 100644 --- a/star.c +++ b/star.c @@ -1,3 +1,5 @@ +//&>/dev/null;x="${0%.*}";[ ! "$x" -ot "$0" ]||(rm -f "$x";cc -lncurses -o "$x" "$0")&&"$x" $*;exit + #include #include #include