* lisp/eshell/em-hist.el (eshell-hist-initialize):
Handle eshell-history-size nil and HISTSIZE set or unset.
+2011-12-01 Glenn Morris <rgm@gnu.org>
+
+ * eshell/em-hist.el (eshell-hist-initialize):
+ Handle eshell-history-size nil and HISTSIZE set or unset.
+
2011-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
* man.el (Man-completion-table): Fix the lambda case (bug#10168).
(make-local-variable 'eshell-history-size)
(or eshell-history-size
- (setq eshell-history-size (getenv "HISTSIZE")))
+ (let ((hsize (getenv "HISTSIZE")))
+ (setq eshell-history-size
+ (if (and (> (length hsize) 0)
+ (integerp (setq hsize (string-to-number hsize))))
+ hsize
+ 128))))
(make-local-variable 'eshell-history-file-name)
(or eshell-history-file-name