diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 03:19:28 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 85452cbb28ec78913d72017fdcb666c40e2fc153 (patch) | |
| tree | aa85236bc8e86cf6c17c35d7f32abe942682ccc6 /build.zig | |
| parent | a3085da09e222238071c4948f6893b21542ac695 (diff) | |
| download | sketchbook-85452cbb28ec78913d72017fdcb666c40e2fc153.tar.gz sketchbook-85452cbb28ec78913d72017fdcb666c40e2fc153.zip | |
fs: a read answered with the sketch closed says so on stderr
With no instance running, fs serves the tree from the save's newest State or the declared defaults; a read then looked exactly like the running sketch's, and a script that read while the sketch was still starting took the save for it (drat-meout's scripts met this). The words the refused files already give ("<name> is not running: this is its save's newest State, frame N of ...") go to stderr before a read's answer; help, ls and complete stay quiet. test-fs checks it; the README says so.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -575,7 +575,7 @@ pub fn build(b: *Build) void { \\fs help ctl | grep -q '^ click X Y ' \\fs write ctl quit; wait $pid \\test ! -e "$rt"/9p/sketchbook/fstest - \\test "$(fs read state/dots/buffer/2/kind)" = .small + \\test "$(fs read state/dots/buffer/2/kind 2>err)" = .small; grep -q 'replay is not running' err \\! fs read status 2>err; grep -q 'replay is not running' err \\rm -rf "$d"/* }); |
