LWN.net Logo

KS2008: Linux 3.0

KS2008: Linux 3.0

Posted Sep 16, 2008 15:19 UTC (Tue) by nix (subscriber, #2304)
In reply to: KS2008: Linux 3.0 by bfields
Parent article: KS2008: Linux 3.0

The real l33t is compiling programs with e.g.

gcc -x c <<'EOF'
...
EOF

:)


(Log in to post comments)

KS2008: Linux 3.0

Posted Sep 16, 2008 16:16 UTC (Tue) by jzbiciak (✭ supporter ✭, #5246) [Link]

What's this "compile" thing folks keep mentioning? The truly l33t prefer to simply "cat > a.out".

KS2008: Linux 3.0

Posted Sep 16, 2008 20:16 UTC (Tue) by nix (subscriber, #2304) [Link]

Most of us can only *aspire* to be Al Viro.

KS2008: Linux 3.0

Posted Sep 16, 2008 21:20 UTC (Tue) by jengelh (subscriber, #33263) [Link]

Nah, you can't correct a line once you hit enter. But you can do it in one line:

echo -en '#include <stdio.h>\nint main(void) { return printf("Hello World\\n"); }\n' | gcc -Wall -xc -

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds