1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 23:07:35 +00:00

Shell: Allow redirections and pipes on builtins

Fixes #3072.
This commit is contained in:
AnotherTest 2020-08-14 22:30:48 +04:30 committed by Andreas Kling
parent 0dac7af6c5
commit c589625418
6 changed files with 81 additions and 13 deletions

View file

@ -78,7 +78,7 @@ public:
RefPtr<Job> run_command(const AST::Command&);
NonnullRefPtrVector<Job> run_commands(Vector<AST::Command>&);
bool run_file(const String&, bool explicitly_invoked = true);
bool run_builtin(int argc, const char** argv, int& retval);
bool run_builtin(const AST::Command&, const NonnullRefPtrVector<AST::Rewiring>&, int& retval);
bool has_builtin(const StringView&) const;
void block_on_job(RefPtr<Job>);
String prompt() const;