Improve the prefix handling in sprintf(3).
Add ability to use --program option with the prompt command.