Skip to content

Miller 6.24.0: Security updates; misc. features and bugfixes

Latest

Choose a tag to compare

@johnkerl johnkerl released this 06 Dec 02:23
· 1 commit to main since this release

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:
    • unsparsify can trim and fill rows to match the input header: #2354 (@Boulea7)
    • cat can number records at a chosen interval: #2351 (@Boulea7)
    • Fields whose names match a regex can be imploded into a single value: #2355 (@Boulea7)
    • join accepts 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

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

Build, CI and dependencies

New contributors

Thanks and welcome to @imharjot, @emirmrkaljevic, @Avinesh, @mokshupadhyay, @dannyward630, @vulragrag-star, @amalsaidov, and @anlonely.

Full Changelog: v6.23.1...v6.24.0