-#### Without readline, need to add trailing newline.
-[ "$readline" = 0 ] && printf '\n' >>"$actual"
+#### Without readline, need to add trailing newline. And the final
+#### prompt that might have been lost.
+if [ "$readline" = 0 ]; then
+ printf '\n' >>"$actual"
+ sed -e '32,32s/^$/What now? /' "$actual" >"$actual.tmp"
+ mv "$actual.tmp" "$actual"
+fi