Breaking Changes
- Short-flag duplication fixed:
-lnow maps exclusively to
--line-numbers-only;--followis long-only (no short flag). Scripts
relying on prior short-flag behavior may need updates. - Environment defaults parsing:
NED_DEFAULTSnow respects quotes and escapes
(POSIX shell-style splitting). Unquoted values that previously split on
spaces may behave differently; quote values containing spaces.
Changed
-
Dependencies' versions updated. Most importantly for the
regexcrate. See
the latest syntax documentation for supported regular
expressions. -
Line-mode context with
-A/-B/-Coptions streams more efficiently, reducing
memory usage and improving performance on large files; quiet modes
short-circuit earlier for faster runs. -
Environment defaults (
NED_DEFAULTS) now support quoted/escaped values via
POSIX shell-style splitting; shell expansion and globbing is not performed.
Quote patterns or values with spaces insideNED_DEFAULTS. -
Color handling is more reliable across modern terminals (including Windows).
--colors=auto|always|neverbehavior is unchanged but detection is improved. -
Option parsing now adheres to standard
getoptssemantics. Free arguments
and the-p/--patternoption can be placed after files as documented,
making command composition more predictable. -
Path normalization is simplified for more consistent printed paths across
platforms; matching behavior is unchanged. -
Quiet matching short-circuits earlier and avoids reading unnecessary files,
improving performance on large trees.
Documentation
README.mdand man page updated:- Clarified
NED_DEFAULTSparsing (quoted/escaped values; no expansion) with
examples. - Color modes and platform notes (Windows),
less -R, and symlink behavior.
- Clarified