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

Shell: Make redirections without commands apply to all future commands

This restirects redirection-only commands' scope, and keeps their
usefulness too!
This commit is contained in:
AnotherTest 2020-08-09 20:08:02 +04:30 committed by Andreas Kling
parent 4409cb88c9
commit 9fde92db38
2 changed files with 19 additions and 20 deletions

View file

@ -216,6 +216,7 @@ private:
pid_t m_pid { 0 };
Vector<LocalFrame> m_local_frames;
NonnullRefPtrVector<AST::Redirection> m_global_redirections;
HashMap<String, String> m_aliases;
bool m_is_interactive { true };