1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

Shell: Fix event loop processing and backgrounding in subshells

This commit is contained in:
AnotherTest 2020-09-07 22:45:31 +04:30 committed by Andreas Kling
parent c3dbe77024
commit 54b453be57
3 changed files with 74 additions and 50 deletions

View file

@ -73,6 +73,8 @@ public:
constexpr static auto local_init_file_path = "~/.shellrc";
constexpr static auto global_init_file_path = "/etc/shellrc";
void setup_signals();
int run_command(const StringView&);
bool is_runnable(const StringView&);
RefPtr<Job> run_command(const AST::Command&);
@ -224,6 +226,7 @@ private:
HashMap<String, String> m_aliases;
bool m_is_interactive { true };
bool m_is_subshell { false };
};
static constexpr bool is_word_character(char c)