diff options
| author | salmonik <salmonik@tuta.io> | 2026-08-01 13:51:28 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-08-01 13:51:28 +0200 |
| commit | 7d8c0ab9e1279e1aeb48ad6968533b4b07efad95 (patch) | |
| tree | 7d2cfd93ef7d35368280f5a412e63f292916d874 /tools/debug-kernel.py | |
| parent | shell: keyword redirection + post-filter flags (ADR 0002) (diff) | |
| download | rs-dos-7d8c0ab9e1279e1aeb48ad6968533b4b07efad95.tar.gz rs-dos-7d8c0ab9e1279e1aeb48ad6968533b4b07efad95.zip | |
shell: cat <path> TIL <marker> sugar + precise ordering errors
- `cat/hexdump <path> TIL <marker>` is now sugar for `USE <path> TIL
<marker>`: the paths are the input source, truncated at the first
marker line across the combined stream. Path args + USE stays a
syntax error (two input sources), now with a message that says so.
- The parser's `trailing` flag conflated filters with the output
keyword, so `cat f TO out TIL m` blamed the filters. USE/TIL now
distinguish "before the filters" from "before the output keyword",
and filters after the output keyword (`TO out -h 2`) are now
rejected instead of silently accepted.
- cat_file_until/hexdump_file_until return a tri-state (Done/Marker/
Aborted) so multi-path TIL truncation stops at the first marker.
Verified in QEMU (10 checks): truncation, combined-stream marker,
filters after the sugar, heredoc round trip, all four ordering-error
messages, USE-with-paths ambiguity, fsck clean.
Diffstat (limited to 'tools/debug-kernel.py')
0 files changed, 0 insertions, 0 deletions
