mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 01:22:37 +03:00
[readline] Allow readline_history() to return a meaningful status
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user