mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
Shell: Separate fd rewirings from redirections.
This was unnecessarily confusing. When we build up a chain of commands connected by pipes, we now store the file descriptors of each end of these pipes as rewirings in a vector. The rewirings are then put into effect by calls to dup2().
This commit is contained in:
@@ -19,7 +19,7 @@ void Parser::commit_subcommand()
|
||||
{
|
||||
if (m_tokens.is_empty())
|
||||
return;
|
||||
m_subcommands.append({ move(m_tokens), move(m_redirections) });
|
||||
m_subcommands.append({ move(m_tokens), move(m_redirections), {} });
|
||||
}
|
||||
|
||||
void Parser::do_pipe()
|
||||
|
||||
Reference in New Issue
Block a user