mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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 <[email protected]> Closes: https://github.com/freebsd/freebsd-src/pull/2093
This commit is contained in:
1 parent
a3c457398f
commit
81b2055c49
1 file changed
+1
-1
+1
-1
@@ -233,7 +233,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);
|
||||
|
||||
Reference in new issue
Block a user