crosh: Make sure command history is saved after typing "exit"
Currently, crosh exits without saving the history when "exit" is
typed (using Ctrl-D works).
This patch modifies exit_cmd to use a variable to break the main
command loop in repl.
BUG=chromium:380538
TEST=Open crosh, enter "random1234", "exit". Open crosh again,
press "up" twice, check that "random1234" then "exit" appears.
Change-Id: Ic6ba44ed9a5b991ab01f3c20964dfc8ddf00f3e5
Reviewed-on: https://chromium-review.googlesource.com/202570
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
1 file changed