From eda60572013d046d08e253e5847a0ba588c10339 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 09:49:03 -0300 Subject: Grep's miss says `Grep: text not found`: it is a literal search, and "pattern" suggested a regular expression Still ENOENT through a mount ("not found" is in 9ns's table, and the unit tests' errno-words check holds it so). The guide's quote follows. Co-Authored-By: Claude Opus 5.5 --- src/builtins.zig | 2 +- src/ninep/ctl.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/builtins.zig b/src/builtins.zig index 40cd83c9..ca80be26 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -1560,7 +1560,7 @@ pub const Mini = struct { /// A Find or Grep that finds nothing fails as one, in words 9ns reads as /// ENOENT (`not found`), the same for both. const e_search_miss_find = "Find: name not found"; -const e_search_miss_grep = "Grep: pattern not found"; +const e_search_miss_grep = "Grep: text not found"; /// List the files below this pane's directory whose names hold its argument, in a +Search. pub const Find = struct { diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 3ec1f4d6..40ffebc8 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -2565,7 +2565,7 @@ test "Grep with no hit says grep: no match and opens nothing, a missing pane dir for (p.panes) |slot| count += @intFromBool(slot != null); const missed = wr(p, Node.of(serialOf(p), .exec), "Grep zzqqnomatchzz\n"); try testing.expectEqual(E.NOENT, missed.errno()); - try testing.expectEqualStrings("Grep: pattern not found", missed.reply.ename); + try testing.expectEqualStrings("Grep: text not found", missed.reply.ename); const unfound = wr(p, Node.of(serialOf(p), .exec), "Find zzqqnomatchzz\n"); try testing.expectEqual(E.NOENT, unfound.errno()); try testing.expectEqualStrings("Find: name not found", unfound.reply.ename); -- cgit v1.3