txlyre hace 1 año
padre
commit
7b82ce80e4
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      langs/c/run.sh

+ 4 - 1
langs/c/run.sh

@@ -1,6 +1,9 @@
+IN="$(mktemp --suffix .c)"
 OUT="$(mktemp)"
 
-gcc -o "$OUT" -xc -
+cat > "$IN"
+
+gcc -o "$OUT" -xc "$IN"
 
 if [ $? -eq 0 ]; then
   exec "$OUT"