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