summaryrefslogtreecommitdiff
path: root/src/sam_edit.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-30 21:40:57 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:17 -0300
commitf8710ab27b54bf0241ad2ed629ccc98aaa619709 (patch)
tree0448730ee44282b0adb2ee17fdb92d4451979911 /src/sam_edit.zig
parent4e5719a133030e8ed29799d4959bb0b917092d7c (diff)
downloadpardes-f8710ab27b54bf0241ad2ed629ccc98aaa619709.tar.gz
pardes-f8710ab27b54bf0241ad2ed629ccc98aaa619709.zip
Edit's w and the other left-out sam commands fail EIO in words, never EOPNOTSUPP, and /os refuses a rename or a chmod as not permitted, EACCES
"w is not supported in pardes" read through a mount as EOPNOTSUPP, as if the file system lacked an operation, and a chmod under /os was answered "invalid truncate", EINVAL. An Edit command pardes leaves out now says so in words 9ns reads as EIO, and a rename or mode change of an /os file is "permission denied", EACCES. fs.md's Failure section and /os entry say both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/sam_edit.zig')
-rw-r--r--src/sam_edit.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sam_edit.zig b/src/sam_edit.zig
index 94cf6fe0..9b055ef9 100644
--- a/src/sam_edit.zig
+++ b/src/sam_edit.zig
@@ -242,7 +242,7 @@ const Parser = struct {
}
},
'\'' => return fail(ps.why, "can't handle '", .{}),
- '"' => return fail(ps.why, "file addresses are not supported", .{}),
+ '"' => return fail(ps.why, "a file address is no address pardes's Edit takes", .{}),
else => break,
}
}
@@ -410,7 +410,7 @@ const Parser = struct {
if (nest == 0) return fail(ps.why, "right brace with no left brace", .{});
return null;
},
- 'b', 'B', 'D', 'e', 'r', 'w', 'f', 'X', 'Y', '<', '|', '>' => return fail(ps.why, "{c} is not supported in pardes", .{c}),
+ 'b', 'B', 'D', 'e', 'r', 'w', 'f', 'X', 'Y', '<', '|', '>' => return fail(ps.why, "{c} is a sam command pardes's Edit leaves out (it has no file or shell commands)", .{c}),
else => return fail(ps.why, "unknown command {c}", .{c}),
}
return cmd;
@@ -768,7 +768,7 @@ test "an Edit that fails halfway changes nothing, and says why in acme's words"
.{ "}", "right brace with no left brace" },
.{ ",x/foo/{", "unmatched `{'" },
.{ ",x/foo/{\nd", "unmatched `{'" },
- .{ "w /tmp/x", "w is not supported in pardes" },
+ .{ "w /tmp/x", "w is a sam command pardes's Edit leaves out (it has no file or shell commands)" },
.{ ",s/(a)/\\1/", "no \\1: mvzr keeps no submatches" },
.{ "1 m 1,2", "move overlaps itself" },
.{ ",x/(^|\\n)foo/d", "bad regular expression: in a pattern with \\n, ^ can only come first and $ only just before a \\n" },