summaryrefslogtreecommitdiffstats
path: root/rsdos/src/main.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-08-01 13:51:28 +0200
committersalmonik <salmonik@tuta.io>2026-08-01 13:51:28 +0200
commit7d8c0ab9e1279e1aeb48ad6968533b4b07efad95 (patch)
tree7d2cfd93ef7d35368280f5a412e63f292916d874 /rsdos/src/main.rs
parentshell: keyword redirection + post-filter flags (ADR 0002) (diff)
downloadrs-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 'rsdos/src/main.rs')
0 files changed, 0 insertions, 0 deletions