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

Shell: Allow the heredoc node to act as a redirection too

This will be used in a future commit to implement POSIX sh heredocs.
This commit is contained in:
Ali Mohammad Pur 2023-02-16 09:50:14 +03:30 committed by Ali Mohammad Pur
parent 9c61fed37c
commit 4efc632e15
4 changed files with 86 additions and 24 deletions

View file

@ -2352,6 +2352,12 @@ void Shell::possibly_print_error() const
case ShellError::LaunchError:
warnln("Shell: {}", m_error_description);
break;
case ShellError::PipeFailure:
warnln("Shell: pipe() failed for {}", m_error_description);
break;
case ShellError::WriteFailure:
warnln("Shell: write() failed for {}", m_error_description);
break;
case ShellError::InternalControlFlowBreak:
case ShellError::InternalControlFlowContinue:
case ShellError::InternalControlFlowInterrupted: