mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-14 10:59:24 +02:00
Shell: Make Command::redirections a NonnullRefPtrVector
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 04:10:21 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3b3d1586495
@@ -449,7 +449,7 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
|
||||
// Resolve redirections.
|
||||
NonnullRefPtrVector<AST::Rewiring> rewirings;
|
||||
for (auto& redirection : command.redirections) {
|
||||
auto rewiring_result = redirection->apply();
|
||||
auto rewiring_result = redirection.apply();
|
||||
if (rewiring_result.is_error()) {
|
||||
if (!rewiring_result.error().is_empty())
|
||||
fprintf(stderr, "error: %s\n", rewiring_result.error().characters());
|
||||
|
||||
Reference in New Issue
Block a user