changeset 4144:56f2f3b279f6

<FireFly> echo -e \'#!/bin/bash\\nsed \'s/\\\\n/\\n/g\' >/tmp/in.cpp <<<"$@"; g++ -o /tmp/a.out /tmp/in.cpp; /tmp/a.out\' >bin/runcpp && chmod a+x bin/runcpp
author HackBot
date Fri, 06 Dec 2013 15:48:11 +0000
parents cd1e48a4fd9b
children 9bd7a48e95a5
files bin/runcpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/runcpp	Fri Dec 06 15:46:03 2013 +0000
+++ b/bin/runcpp	Fri Dec 06 15:48:11 2013 +0000
@@ -1,2 +1,3 @@
 #!/bin/bash
-cat >/tmp/in.cpp <<<"$@"; g++ -o /tmp/a.out /tmp/in.cpp; /tmp/a.out
+sed s/
+/n/g >/tmp/in.cpp <<<"$@"; g++ -o /tmp/a.out /tmp/in.cpp; /tmp/a.out