mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
Userland: Make grep exit after hitting EOF on stdin
This commit is contained in:
parent
3eeb00b003
commit
12f214e2f0
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ int main(int argc, char** argv)
|
|||
|
||||
if (!files.size() && !recursive) {
|
||||
auto stdin_file = Core::File::standard_input();
|
||||
for (;;) {
|
||||
while (!stdin_file->eof()) {
|
||||
auto line = stdin_file->read_line();
|
||||
bool is_binary = line.bytes().contains_slow(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue