[readline] Allow readline_history() to return a meaningful status

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-10-24 23:21:49 -07:00
parent 88e19fcda9
commit 2c011d77ae
5 changed files with 32 additions and 20 deletions

View File

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