<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>sh: Increase default history size to POSIX mandated minimum of 128</title>
<updated>2026-04-13T23:06:41+00:00</updated>
<author>
<name>Kristofer Peterson</name>
<email>kris@tranception.com</email>
</author>
<published>2026-03-24T14:56:48+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=81b2055c49dec8884d7bb23503f1dfeac37ac95d'/>
<id>81b2055c49dec8884d7bb23503f1dfeac37ac95d</id>
<content type='text'>
The default history size in bin/sh is currently 100 however POSIX.1-2024
mandates that a default greater than or equal to 128 shall be used,
therefore this increases the default history size in /bin/sh to 128.

POSIX standards reference:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sh.html#tag_20_110_08

MFC after:	3 days
Reviewed by:	emaste, jilles, jlduran, ziaee
Signed-off-by:	Kristofer Peterson &lt;kris@tranception.com&gt;
Closes:		https://github.com/freebsd/freebsd-src/pull/2093
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The default history size in bin/sh is currently 100 however POSIX.1-2024
mandates that a default greater than or equal to 128 shall be used,
therefore this increases the default history size in /bin/sh to 128.

POSIX standards reference:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sh.html#tag_20_110_08

MFC after:	3 days
Reviewed by:	emaste, jilles, jlduran, ziaee
Signed-off-by:	Kristofer Peterson &lt;kris@tranception.com&gt;
Closes:		https://github.com/freebsd/freebsd-src/pull/2093
</pre>
</div>
</content>
</entry>
<entry>
<title>timeout.1: Document non-POSIX options</title>
<updated>2026-04-13T19:52:21+00:00</updated>
<author>
<name>Artem Bunichev</name>
<email>tembun@bk.ru</email>
</author>
<published>2026-04-13T01:15:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b1bc748430b5ee79ae103c464dbf5ebc8802f782'/>
<id>b1bc748430b5ee79ae103c464dbf5ebc8802f782</id>
<content type='text'>
MFC after:		3 days
Reviewed by:		Aaron Li &lt;aly@aaronly.me&gt;, ziaee
Differential Revision:	https://reviews.freebsd.org/D56090
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:		3 days
Reviewed by:		Aaron Li &lt;aly@aaronly.me&gt;, ziaee
Differential Revision:	https://reviews.freebsd.org/D56090
</pre>
</div>
</content>
</entry>
<entry>
<title>uuidgen: generate UUIDs in bounded batches to respect kernel limit</title>
<updated>2026-03-07T07:51:16+00:00</updated>
<author>
<name>NVSRahul</name>
<email>nvsrahul@hotmail.com</email>
</author>
<published>2026-01-13T05:52:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3570b19d74ed94dcc7fac2dcbf42b378bc72362e'/>
<id>3570b19d74ed94dcc7fac2dcbf42b378bc72362e</id>
<content type='text'>
The uuidgen(2) system call enforces a hard upper limit of 2048 UUIDs per
invocation. uuidgen(1) previously attempted to generate arbitrary counts
in a single call and allocated memory accordingly, leading to EINVAL
errors, unnecessary memory usage, and potential overflow risks.

Generate UUIDs in fixed-size batches, streaming output incrementally
while preserving existing semantics. Mirror the kernel limit explicitly
since it is not exposed via a public interface.

Signed-off-by: NVSRahul &lt;nvsrahul@hotmail.com&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1965
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The uuidgen(2) system call enforces a hard upper limit of 2048 UUIDs per
invocation. uuidgen(1) previously attempted to generate arbitrary counts
in a single call and allocated memory accordingly, leading to EINVAL
errors, unnecessary memory usage, and potential overflow risks.

Generate UUIDs in fixed-size batches, streaming output incrementally
while preserving existing semantics. Mirror the kernel limit explicitly
since it is not exposed via a public interface.

Signed-off-by: NVSRahul &lt;nvsrahul@hotmail.com&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1965
</pre>
</div>
</content>
</entry>
<entry>
<title>/bin/ps: Fix display of negative nice values on ARMv7/aarch64</title>
<updated>2026-03-07T07:51:14+00:00</updated>
<author>
<name>Jamie Landeg-Jones</name>
<email>jamie@catflap.org</email>
</author>
<published>2026-03-07T01:18:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9006a731bc951c5b62efc4bf75a0c5b42586d279'/>
<id>9006a731bc951c5b62efc4bf75a0c5b42586d279</id>
<content type='text'>
On Arm-based systems (and maybe others), 'char' defaults to unsigned,
causing negative nice values to be displayed incorrectly (e.g., 246
instead of -10). Explicitly using 'signed char' ensures consistent
behaviour across architectures.

[ tested on RPI2 and generic aarch64 qemu install ]

Before:
  # /usr/bin/nice --10 ps -l | awk '(NR == 1 || $(NF-1) == "ps")'
  UID   PID  PPID C PRI  NI  VSZ  RSS MWCHAN  STAT TT     TIME COMMAND
    0 23606 22800 2 -32 246 5400 2544 -       R&lt;+   0  0:00.06 ps -l

After:
  # /usr/bin/nice --10 ps -l | awk '(NR == 1 || $(NF-1) == "ps")'
  UID   PID  PPID C PRI  NI  VSZ  RSS MWCHAN  STAT TT     TIME COMMAND
    0 23614 22800 3 -32 -10 5400 2544 -       R&lt;+   0  0:00.05 ps -l

Signed-off-by: Jamie Landeg-Jones &lt;jamie@catflap.org&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2064
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Arm-based systems (and maybe others), 'char' defaults to unsigned,
causing negative nice values to be displayed incorrectly (e.g., 246
instead of -10). Explicitly using 'signed char' ensures consistent
behaviour across architectures.

[ tested on RPI2 and generic aarch64 qemu install ]

Before:
  # /usr/bin/nice --10 ps -l | awk '(NR == 1 || $(NF-1) == "ps")'
  UID   PID  PPID C PRI  NI  VSZ  RSS MWCHAN  STAT TT     TIME COMMAND
    0 23606 22800 2 -32 246 5400 2544 -       R&lt;+   0  0:00.06 ps -l

After:
  # /usr/bin/nice --10 ps -l | awk '(NR == 1 || $(NF-1) == "ps")'
  UID   PID  PPID C PRI  NI  VSZ  RSS MWCHAN  STAT TT     TIME COMMAND
    0 23614 22800 3 -32 -10 5400 2544 -       R&lt;+   0  0:00.05 ps -l

Signed-off-by: Jamie Landeg-Jones &lt;jamie@catflap.org&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2064
</pre>
</div>
</content>
</entry>
<entry>
<title>ed: add unicode support for the l (list) command</title>
<updated>2026-03-01T11:28:29+00:00</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2026-02-17T15:25:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5df6aca10906f669bc7095ff735eba6b8fe95ff0'/>
<id>5df6aca10906f669bc7095ff735eba6b8fe95ff0</id>
<content type='text'>
Use mbrtowc()/iswprint()/wcwidth() in put_tty_line() so that
the l command displays valid multibyte characters as-is instead
of escaping each byte as octal.

Column wrapping now correctly accounts for character display
width (including double-width CJK characters).

Invalid or incomplete UTF-8 sequences and non-printable
characters are still escaped as octal.

Differential Revision:	https://reviews.freebsd.org/D55365
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use mbrtowc()/iswprint()/wcwidth() in put_tty_line() so that
the l command displays valid multibyte characters as-is instead
of escaping each byte as octal.

Column wrapping now correctly accounts for character display
width (including double-width CJK characters).

Invalid or incomplete UTF-8 sequences and non-printable
characters are still escaped as octal.

Differential Revision:	https://reviews.freebsd.org/D55365
</pre>
</div>
</content>
</entry>
<entry>
<title>ed: add unicode test cases to ATF test suite</title>
<updated>2026-03-01T11:25:16+00:00</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2026-02-17T16:38:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7c2c2c2a2253370c88fe428cf1c0ecebd68fe864'/>
<id>7c2c2c2a2253370c88fe428cf1c0ecebd68fe864</id>
<content type='text'>
Including examples in Cyrillic suggested by kib@

Differential Revusion:	https://reviews.freebsd.org/D55364
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Including examples in Cyrillic suggested by kib@

Differential Revusion:	https://reviews.freebsd.org/D55364
</pre>
</div>
</content>
</entry>
<entry>
<title>sh.1: Add .sh_history and .shrc to FILES</title>
<updated>2026-02-23T08:18:23+00:00</updated>
<author>
<name>Alexander Ziaee</name>
<email>ziaee@FreeBSD.org</email>
</author>
<published>2026-02-23T08:16:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9a20515bc9ce3fe6d7f09fd6bdece0dd45bdbc87'/>
<id>9a20515bc9ce3fe6d7f09fd6bdece0dd45bdbc87</id>
<content type='text'>
MFC after:		3 days
Reviewed by:		bapt (previous), jilles, tembun@bk.ru
Differential Revision:	https://reviews.freebsd.org/D55295
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:		3 days
Reviewed by:		bapt (previous), jilles, tembun@bk.ru
Differential Revision:	https://reviews.freebsd.org/D55295
</pre>
</div>
</content>
</entry>
<entry>
<title>ed: convert test suite to ATF/kyua</title>
<updated>2026-02-19T09:46:42+00:00</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2026-02-17T16:14:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f015e48a4a0482787b46e972754619a75475439c'/>
<id>f015e48a4a0482787b46e972754619a75475439c</id>
<content type='text'>
MFC After:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC After:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>sh.1: Reference editline(7)</title>
<updated>2026-02-18T18:17:07+00:00</updated>
<author>
<name>Artem Bunichev</name>
<email>tembun@bk.ru</email>
</author>
<published>2026-02-18T18:16:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=009be09172348c352db5d74f6ece2f4cb47ee193'/>
<id>009be09172348c352db5d74f6ece2f4cb47ee193</id>
<content type='text'>
Key bindings for command line editing are documented in editline(7).

MFC after:		3 days
Reviewed by:		jilles, ziaee
Differential Revision:	https://reviews.freebsd.org/D54767
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Key bindings for command line editing are documented in editline(7).

MFC after:		3 days
Reviewed by:		jilles, ziaee
Differential Revision:	https://reviews.freebsd.org/D54767
</pre>
</div>
</content>
</entry>
<entry>
<title>stty: Add SPDX-License-Identifier tags</title>
<updated>2026-02-18T15:50:22+00:00</updated>
<author>
<name>Tuukka Pasanen</name>
<email>tuukka.pasanen@ilmi.fi</email>
</author>
<published>2026-02-09T08:11:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=743a7f954c2720fa318e9e1f7ca1c549977560f9'/>
<id>743a7f954c2720fa318e9e1f7ca1c549977560f9</id>
<content type='text'>
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55217
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55217
</pre>
</div>
</content>
</entry>
</feed>
