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