1
Fork 0
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:
MinusGix 2019-09-08 20:00:35 -05:00 committed by Andreas Kling
parent 2bd181a14b
commit 91a609d945
2 changed files with 5 additions and 0 deletions

View file

@ -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;