You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mailx overhauled. Mailboxes are streamed into a private store and written back in place through a synced recovery file. Locking uses dotlocks as well as kernel locks. Mail is kept as the bytes it was stored as, so non-UTF-8 mail and CRLF line endings survive. New mail delivered during a session is taken in with inc and autoinc. Signals, hangups, editors and sendmail are handled the way BSD mailx handles them.
awk is faster and more correct. Input and output are buffered. Dynamic regular expressions are compiled once. NUL bytes are ordinary characters. Records may have more than 65535 fields, and NR/FNR count past 2^32. printf and number conversion follow C at any size. Regular-expression RS handling has been reworked.
ed, ex and vi edit arbitrary bytes. Files are read and written losslessly. Marks keep their lines across undo. ex has one command-line tokenizer, and vi has one motion table that adds the missing motions.
pax writes the pax format by default.
expr and bc handle integers of any size and give clearer diagnostics.
By area
mailx
Mailboxes are copied into a private store and streamed instead of read whole. Headers and bodies are read from the store on demand.
Mailboxes are rewritten in place through a synced recovery file. mbox is prepended through a temporary file and a rename, and its symlinks and hard links are kept.
Takes the mailbox dotlock as well as fcntl locks, gives up a dotlock it cannot clear, and re-locks a mailbox that is removed during the wait.
Mail delivered mid-session is taken in with inc and autoinc.
Message bytes are kept exactly: non-UTF-8 mailboxes and bodies are accepted and CRLF is preserved. Mail files are created private to the user.
One address parser that respects quotes and comments. Reply and Followup split address lists by address.
Header summaries: traditional sender layout, dates taken from the From line or loosely formatted Date: headers, control characters shown as ?, and sizes counted as stored.
BSD-compatible handling of HUP/INT/QUIT, EDITOR/VISUAL (run without a shell), the sendmail variable, sendmail exiting early, and a hangup while composing (the draft is saved).
POSIX fixes: next n, $, dp/dt, copy defaulting to mbox, marking messages read, headers n, ignoreeof, file %, pipe, and errors in start-up files.
At quit, reports what moved to mbox and what was held.
awk
Output is buffered and flushed before commands and before awk waits for input. Records are read in large buffered reads. Output files close before pipes at exit.
NUL bytes are ordinary characters. Records may have more than 65535 fields, field creation is capped in total, and NR/FNR count past 2^32.
%g/%e/%f and integer conversions follow C. Integral numbers beyond 2^63 convert to their exact digits. Numbers print with a period in every locale.
Regular-expression RS was reworked for read-ahead, growable patterns, end-of-input and paragraph mode.
Dynamic regular expressions are compiled once. String comparison follows the locale's collation, but == and != do not.
Functions may recurse tens of thousands of calls deep. Runtime errors show a call trace of at most ten calls.
The files from several -f options form one program. system() reports a command killed by a signal as 256 + signal. fflush returns 0. Diagnostics begin with awk: .
ed / ex / vi
All three edit bytes, not UTF-8 text, with a lossless escape at the I/O boundary. ed supplies a missing final newline.
ed: lines live in a gap buffer and keep their identity, so marks and globals survive undo. Shell commands run as system(3)/popen(3) run them. Stricter command parsing and s delimiter rules.
ex: one command-line tokenizer (|, abbreviations, comments, flags). Search addresses are addresses. :g uses the editor's RE rules and stops on errors. Handles hangup and interrupt while reading. Depth limit for :so/:@.
vi: one motion table with the missing motions added. Counts on text input. R overwrites. One undo per change. Marks follow their lines.
Recovery files go through one verified directory descriptor. -r and -c follow POSIX's command-line rules.
pax
The pax format is now the default for writing.
-o keyword records replace the ustar fields they override. x and g headers carry octal device numbers.
expr
Integers of any size compare as integers. Arithmetic is 128-bit, and results past that are "integer overflow".
Syntax errors name the argument where they occurred. Invalid regular expressions report regcomp's reason. Control bytes in diagnostics are escaped.
bc
Values are held to the working-digit limit, and long literals are read quickly.
Input is read one item at a time, as POSIX says. A runtime error no longer skips a later quit.
Accepts GNU bc's newline, one-line define and bare return forms.
Compound assignments evaluate their target once.
asa
Reads bytes, and takes the control character from the locale. Standard output is block-buffered, and every write error is reported.
cc (c17)
Several compile-time passes now run in linear time: phi placement, CFG chain merging, and the regalloc verifier.
Fixed __int128 argument homes, and <tgmath.h> with glibc 2.40 feature-test names.
Build and testing
Builds and tests with Rust 1.100 as well as older compilers.
No debug-build integration test runs over a minute. Fixed test flakes on macOS and under coverage.
Dependencies refreshed and followed upwards: version requirements now name only the major version. nm and strip moved to object 0.41, and the tests moved to rand 0.10. The pax tests set file times through std::fs, so the filetime dependency is gone.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Highlights
incandautoinc. Signals, hangups, editors and sendmail are handled the way BSD mailx handles them.printfand number conversion follow C at any size. Regular-expressionRShandling has been reworked.By area
mailx
incandautoinc.?, and sizes counted as stored.sendmailvariable, sendmail exiting early, and a hangup while composing (the draft is saved).next n,$,dp/dt,copydefaulting to mbox, marking messages read,headers n,ignoreeof,file %,pipe, and errors in start-up files.awk
%g/%e/%fand integer conversions follow C. Integral numbers beyond 2^63 convert to their exact digits. Numbers print with a period in every locale.RSwas reworked for read-ahead, growable patterns, end-of-input and paragraph mode.==and!=do not.-foptions form one program.system()reports a command killed by a signal as 256 + signal.fflushreturns 0. Diagnostics begin withawk:.ed / ex / vi
sdelimiter rules.|, abbreviations, comments, flags). Search addresses are addresses.:guses the editor's RE rules and stops on errors. Handles hangup and interrupt while reading. Depth limit for:so/:@.Roverwrites. One undo per change. Marks follow their lines.-rand-cfollow POSIX's command-line rules.pax
-okeyword records replace the ustar fields they override. x and g headers carry octal device numbers.expr
bc
quit.defineand barereturnforms.asa
cc (c17)
__int128argument homes, and<tgmath.h>with glibc 2.40 feature-test names.Build and testing
object0.41, and the tests moved torand0.10. The pax tests set file times throughstd::fs, so thefiletimedependency is gone.Scale: 254 commits, 235 files changed, +32,532 / −19,568.
This discussion was created from the release Version 0.10.0.
All reactions