IN="$(mktemp --suffix .cob)" OUT="$(mktemp)" cat > "$IN" echo "" >> "$IN" cobc -x -o "$OUT" "$IN" if [ $? -eq 0 ]; then exec "$OUT" fi