mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +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
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