Do not store blank strings in the history file for prompt(3).
Tidy whitespace in prompt(3).
Remove obsolete code in prompt(3).