From nobody Thu Aug 6 22:31:54 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hGMTR1xGYz6nLmp for ; Thu, 06 Aug 2026 22:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hGMTQ4k1Nz4PmH for ; Thu, 06 Aug 2026 22:31:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786055514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gEUwF+KuGSCKPOAsG5KcTM7wC9yK9PSFtxdUz2VDbog=; b=OhyFVnx+2YgN0Nh/lkzG6BfM0DMYvIiEwk0XecPaHYntEr3HhQzcEed8/+RlFyGAKDr/MY 1NgiZM51fedpfgHYuo4D84b+Wpq2QoH0eLJUvLtmnHuysTXXw4RLA+sasSmSuvY43LLVZQ 5wGXtjRxNTd+io7e8q+Az9XcWhldP/hwV9zQkwbmUhYqoOy5+kaquAYoCo+aYFD8us7O0E DQQO76QlREx694mIANpfsp+7N1sEv5e1kkee4SFuIpl42uoBZJHjwRImksIPXhmduPIsJk h87SlKUogo9fnoDibi5NhyWSFiDta91dF/fx6V6UlEpv+n/+feLDp9IVz5eSbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786055514; a=rsa-sha256; cv=none; b=bPy4mzNi19iL1EPCzS9fMiuvlGfAVF6YURVsX0Ad3GTUL9o2MpXvcxUThOIIgBQNWavnub RpqZykewh9RnSaihgjnV9RxmwVY5bEJ4qvMaeXLnmocK95UkytdrEoaOO5Gc7dgw8dcjKj KAL3pi7Pf0FXMSiyZSBAy6Ii4MTeU/4VrjlOqb/J591G5gJ49bPwCEOIdEGwL0UJPx1i7F 560WKQakGCqd46rmwpVPuC6sihIGRqHAWHbd4Csk9g/sl6Di/xdmVn7hTarJlM5MnFcGTs UOeowh2/Xk3Jkqgk4N3xOVlPsBGOgv+zhpBMwTdnfQACWZJkwCvJDDAdt2rq/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786055514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gEUwF+KuGSCKPOAsG5KcTM7wC9yK9PSFtxdUz2VDbog=; b=UZ03HNe604Jge+P0oRFp2tF5bxw7pCAr29yr4r1bEGOMskI4KnBlWbNmt7iRUPgPn20SyJ Oari6ZBvS/RKalrI1G4AFNs54g5vlQpjm0oxh602eZveMaJZLQeKERVMf8TVNh+6UVPr0T 4O9rXc5SsB7mOJtZcm1fYXMxQLA5fQZxYRntepow3boQ7gEUx5sKHP18d6YObJFaARsaP0 mT6l4PQI3btEdLh2poOOTa70ruuQ3QWk4wrRLGtp8SBsKCV+HT/dhU7uJ4RQbwo+kx0MnV p6PtR8hoGbOe8ppGyuNo3Q3R1qwmpFMp+jso7cOFFTMiyhr052n+zaJkkNCikg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGMTQ3cHnzh1W for ; Thu, 06 Aug 2026 22:31:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1cac7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 06 Aug 2026 22:31:54 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Kristofer Peterson From: Alexander Ziaee Subject: git: 9bc3d8e002b9 - stable/14 - sh: Increase default history size to POSIX mandated minimum of 128 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9bc3d8e002b96d8afd9a5f04f5d45500244f1e1b Auto-Submitted: auto-generated Date: Thu, 06 Aug 2026 22:31:54 +0000 Message-Id: <6a750b5a.1cac7.29c9ab3e@gitrepo.freebsd.org> The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=9bc3d8e002b96d8afd9a5f04f5d45500244f1e1b commit 9bc3d8e002b96d8afd9a5f04f5d45500244f1e1b Author: Kristofer Peterson AuthorDate: 2026-03-24 14:56:48 +0000 Commit: Alexander Ziaee CommitDate: 2026-08-06 22:26:18 +0000 sh: Increase default history size to POSIX mandated minimum of 128 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 Closes: https://github.com/freebsd/freebsd-src/pull/2093 (cherry picked from commit 81b2055c49dec8884d7bb23503f1dfeac37ac95d) --- bin/sh/histedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 3ca8a0bcefa7..44515d86a6cf 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -235,7 +235,7 @@ sethistsize(const char *hs) if (hist != NULL) { if (hs == NULL || !is_number(hs)) - histsize = 100; + histsize = 128; else histsize = atoi(hs); history(hist, &he, H_SETSIZE, histsize);