Summary
This release mostly adds features to verbs and fixes edge cases in parsing and output. Eight people made their first contribution.
Behavior change: terminal output
When Miller writes to a terminal, it now caret-escapes ESC, BEL and other C0 control characters in field names and values, the same way cat -v does. For example, ESC is shown as ^[. This stops untrusted data from controlling your terminal, such as writing to the clipboard, changing the window title or clearing the screen. Output to a pipe or a file is unchanged. To get the old behavior, use --pass-terminal-escapes. See #2268 (@vulragrag-star).
New features
- Verbs:
unsparsifycan trim and fill rows to match the input header: #2354 (@Boulea7)catcan number records at a chosen interval: #2351 (@Boulea7)- Fields whose names match a regex can be imploded into a single value: #2355 (@Boulea7)
joinaccepts a different prefix for each right input file: #2352 (@Boulea7)
- Formats: Repeated recutils fields can be read as arrays on request: #2350 (@Boulea7)
- strptime: Space-padded hours now parse with
%k/%l(#2344, @Boulea7). Full month and weekday names parse without assuming a fixed width (#2372, @anlonely). - Shell completion: Verb flags with fixed sets of values now complete those values: #2273 (@dannyward630)
Bug fixes
- Empty values are now skipped by
top(#2347),fraction(#2362) andhistogram(#2370), all by @emirmrkaljevic. - Numbers:
- Decimal integers too large for int64 are inferred as float: #2366 (@amalsaidov)
MinInt64divided by -1 overflows to float in/and//: #2343 (@mokshupadhyay)- The
sec2gmtverb keeps integer--millis/--micros/--nanosinputs exact: #2373 (@amalsaidov)
- strptime: A dangling trailing
%is rejected: #2338 (@imharjot) sort-within-records: No longer takesthenas the argument to-r: #2340 (@emirmrkaljevic)- Input:
- Deduplicated headers are kept on ragged CSV rows: #2277 (@dannyward630)
\|and\│are unescaped in Markdown and box input: #2357 (@minilan677-netizen)
- Output:
- Bytes that terminals act on are caret-escaped in field values written to a TTY: #2268 (@vulragrag-star)
- Non-UTF-8 bytes pass through TSV output unchanged: #2360 (@mokshupadhyay)
Performance and streaming
- CSV and TSV readers stop reading once downstream processing is cancelled (for example by
head): #2335 (@kelpforge) - The CSV/TSV scanner reads at most one batch ahead: #2345 (@Boulea7)
Docs
- openSUSE/SUSE install and build instructions: #2353 (@Avinesh)
README.mdnow leads with copy-pasteable one-liners: #2367 (@johnkerl)llms.txtfor the docs site: #2368 (@johnkerl)- A plan for Answer Engine Optimization: #2365 (@johnkerl)
Build, CI and dependencies
release.shuploads the tarball's sha256: #2337 (@johnkerl)- The empty-string-argument
cattest is skipped on Windows: #2359 (@johnkerl) - A lint fix: #2364 (@johnkerl)
make devrefresh: #2375 (@johnkerl)- Dependabot updates for codeql-action (#2341) and the MCP go-sdk 1.9.0 (#2348)
New contributors
Thanks and welcome to @imharjot, @emirmrkaljevic, @Avinesh, @mokshupadhyay, @dannyward630, @vulragrag-star, @amalsaidov, and @anlonely.
Full Changelog: v6.23.1...v6.24.0