changeset 4145:9bd7a48e95a5

<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:49:31 +0000
parents 56f2f3b279f6
children 5ae95d1256b4
files bin/runcpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/runcpp	Fri Dec 06 15:48:11 2013 +0000
+++ b/bin/runcpp	Fri Dec 06 15:49:31 2013 +0000
@@ -1,3 +1,2 @@
 #!/bin/bash
-sed s/
-/n/g >/tmp/in.cpp <<<"$@"; g++ -o /tmp/a.out /tmp/in.cpp; /tmp/a.out
+sed s:\\n:\n:g >/tmp/in.cpp <<<"$@"; g++ -o /tmp/a.out /tmp/in.cpp; /tmp/a.out