Hi!

----

Attached is a small patch
("ksh93_bump_default_history_size_to_512.diff.txt") which increases the
default number of lines in the history from "128" to "512". The current
limit is little bit small in some cases (and some people complained
about this during testing) so I bumped it to "512" (bash3 uses "500" as
default).
It would be nice if this patch gets integrated for the next version...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
-------------- next part --------------
Index: src/lib/libshell/common/edit/history.c
===================================================================
--- src/lib/libshell/common/edit/history.c      (revision 315)
+++ src/lib/libshell/common/edit/history.c      (working copy)
@@ -47,7 +47,7 @@
 #define HIST_UNDO      0201            /* invalidate previous command */
 #define HIST_CMDNO     0202            /* next 3 bytes give command number */
 #define HIST_BSIZE     1024            /* size of history file buffer */
-#define HIST_DFLT      128             /* default size of history list */
+#define HIST_DFLT      512             /* default size of history list */
 
 #define _HIST_PRIVATE \
        off_t   histcnt;        /* offset into history file */\
Index: src/lib/libshell/common/sh.memo
===================================================================
--- src/lib/libshell/common/sh.memo     (revision 315)
+++ src/lib/libshell/common/sh.memo     (working copy)
@@ -419,7 +419,7 @@
 The number of commands accessible to the user is determined by the value of the
 \fB\s-1HISTSIZE\s+1\fP
 variable at the time the shell is invoked.
-The default value is 128.
+The default value is 512.
 Each command may consist of one or more lines since a compound
 command is considered one command.
 If the character
Index: src/lib/libshell/common/sh.1
===================================================================
--- src/lib/libshell/common/sh.1        (revision 315)
+++ src/lib/libshell/common/sh.1        (working copy)
@@ -1690,7 +1690,7 @@
 the number of previously entered commands that
 are accessible by this shell
 will be greater than or equal to this number.
-The default is 128.
+The default is 512.
 .TP
 .B
 .SM HOME

Reply via email to