mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +00:00
Shell: Add support for special parameter that expands to return-code of last program executed
This commit is contained in:
parent
2bd181a14b
commit
91a609d945
Notes:
sideshowbarker
2024-07-19 12:10:29 +09:00
Author: https://github.com/MinusGix
Commit: 91a609d945
Pull-request: https://github.com/SerenityOS/serenity/pull/537
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
2 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,7 @@ struct GlobalState {
|
|||
struct termios termios;
|
||||
bool was_interrupted { false };
|
||||
bool was_resized { false };
|
||||
int last_return_code { 0 };
|
||||
};
|
||||
|
||||
extern GlobalState g;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue