mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
Shell: Allow a command sequence to be delimited by newlines
This commit is contained in:
committed by
Andreas Kling
parent
639c1a1737
commit
034be8e74c
@@ -497,12 +497,8 @@ bool Shell::run_file(const String& filename)
|
||||
return false;
|
||||
}
|
||||
auto file = file_result.value();
|
||||
for (;;) {
|
||||
auto line = file->read_line(4096);
|
||||
if (line.is_null())
|
||||
break;
|
||||
run_command(String::copy(line, Chomp));
|
||||
}
|
||||
auto data = file->read_all();
|
||||
run_command(data);
|
||||
return true;
|
||||
}
|
||||
void Shell::take_back_stdin()
|
||||
|
||||
Reference in New Issue
Block a user