diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-12 10:17:53 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-12 14:41:07 +0100 |
commit | 091ef4fcfc17f6af6a283da976d81b3b026fc6a9 (patch) | |
tree | 0e286fe00729344aa80051bb64ee1c23d98bd06f /pbl | |
parent | 8dabeb6a13b604cbc8e5f0321accf0fe5c5f4b63 (diff) | |
download | barebox-091ef4fcfc17f6af6a283da976d81b3b026fc6a9.tar.gz barebox-091ef4fcfc17f6af6a283da976d81b3b026fc6a9.tar.xz |
hush: fix exit on syntax error behaviour
input.__promptme is no valid indicator that run_shell should be left.
It should be left on executing the 'exit' builtin which is indicated
by a return code < 0 from parse_stream_outer(). Track this with an extra
variable and use it as a condition to return from an interactive shell.
This fixes the weird behaviour that hush exits (and the user finds itself
in the menu) when a syntax error occured.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'pbl')
0 files changed, 0 insertions, 0 deletions