From d13ae04008e678ed992e6181487dbfd126a4154f Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 07:12:25 -0300 Subject: A look line takes `?re?` after its colon, as addr does `file:?foo?`, `@p5:?foo?` and `:?foo?` were not taken for addresses (the first character had to be one of `0-9+-/$.#,;`), so they went the path way and found nothing. Co-Authored-By: Claude Opus 5.5 --- src/ninep/ctl.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ninep/ctl.zig') diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index acb1b934..02201de0 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -1951,6 +1951,9 @@ test "@p:
takes any sam address; a miss and an unknown serial a .{ .addr = "#12,#15", .want = " 12 15 " }, .{ .addr = "$", .want = " 16 16 " }, .{ .addr = "1,2", .want = " 0 16 " }, + // Backward, as in addr: from the dot's start, wrapping to the last. + .{ .addr = "?foo?", .want = " 6 9 " }, + .{ .addr = "$-?y?", .want = " 10 11 " }, }) |c| { var line: [64]u8 = undefined; try testing.expectEqual(Status.ok, wr(p, root, try std.fmt.bufPrint(&line, "@p{d}:{s}\n", .{ serial, c.addr })).reply.status); -- cgit v1.3