diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 09:49:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 09:49:03 -0300 |
| commit | eda60572013d046d08e253e5847a0ba588c10339 (patch) | |
| tree | af17805628e1dc735bfd59d7184cfa7b1ad1d120 /src | |
| parent | 802de4f12f125abc261c58bdb5385f6be3ad469a (diff) | |
| download | pardes-eda60572013d046d08e253e5847a0ba588c10339.tar.gz pardes-eda60572013d046d08e253e5847a0ba588c10339.zip | |
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 <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/builtins.zig | 2 | ||||
| -rw-r--r-- | src/ninep/ctl.zig | 2 |
2 files changed, 2 insertions, 2 deletions
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); |
