[readline] Allow a prefilled input string to be provided

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-10-24 20:16:15 -07:00
parent c86790df5c
commit 4dedccfa1f
3 changed files with 11 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ int shell ( void ) {
/* Read and execute commands */
do {
line = readline_history ( shell_prompt, &history );
line = readline_history ( shell_prompt, NULL, &history );
if ( line ) {
rc = system ( line );
free ( line );