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
commit 91a609d945
Notes: sideshowbarker 2024-07-19 12:10:29 +09:00
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;