diff --git a/Userland/Shell/AST.cpp b/Userland/Shell/AST.cpp index 35e0cc810f..6f7704fdff 100644 --- a/Userland/Shell/AST.cpp +++ b/Userland/Shell/AST.cpp @@ -7,13 +7,13 @@ #include "AST.h" #include "Shell.h" #include -#include #include #include #include #include #include #include +#include #include #include #include @@ -1641,7 +1641,7 @@ void Execute::for_each_entry(RefPtr shell, Function shell, Functionlocal_variable_or("IFS"sv, "\n"sv); - if (auto offset = stream.offset_of(ifs.bytes()); offset.has_value()) { + if (auto offset = stream.offset_of(ifs.bytes()).release_value_but_fixme_should_propagate_errors(); offset.has_value()) { auto line_end = offset.value(); if (line_end == 0) { - auto rc = stream.discard_or_error(ifs.length()); - VERIFY(rc); + stream.discard(ifs.length()).release_value_but_fixme_should_propagate_errors(); if (shell->options.inline_exec_keep_empty_segments) if (callback(make_ref_counted("")) == IterationDecision::Break) { @@ -1671,8 +1670,7 @@ void Execute::for_each_entry(RefPtr shell, Function(str)) == IterationDecision::Break) { @@ -1723,7 +1721,7 @@ void Execute::for_each_entry(RefPtr shell, Function shell, Function shell, Functionraise_error(Shell::ShellError::OutOfMemory, {}, position()); return; } auto entry = entry_result.release_value(); - auto rc = stream.read_or_error(entry); - VERIFY(rc); + stream.read_entire_buffer(entry).release_value_but_fixme_should_propagate_errors(); callback(make_ref_counted(DeprecatedString::copy(entry))); } }