IN="$(mktemp --suffix .adb)" OUT="$(mktemp)" cat > "$IN" gnatmake -gnatwA "$IN" -o "$OUT" if [ -f $OUT ]; then exec "$OUT" fi