maemo.org Bugzilla – Bug 7014
ash saves only 15 lines of history
Last modified: 2011-05-05 23:41:46 UTC
You need to log in before you can comment on or make changes to this bug.
SOFTWARE VERSION: (Settings > General > About product) 1.2009.42-11.002 EXACT STEPS LEADING TO PROBLEM: (Explain in detail what you do (e.g. tap on OK) and what you see (e.g. message Connection Failed appears)) 1. Open an X terminal. 2. Type more than 15 different commands. 3. Type "exit", or press ctrl-d, or use the workaround from bug 5317 and then just close the X terminal. 4. Open an X terminal. 5. Press up repeatedly to recall commands from history. Or, type "wc -l .ash_history" to see the number of lines in .ash_history . EXPECTED OUTCOME: More than 15 commands saved. ACTUAL OUTCOME: Only 15 commands saved. REPRODUCIBILITY: always OTHER COMMENTS: As far as I know, changing this may require recompiling busybox ash with a new setting. I'd propose increasing this to a reasonable number, preferably a few thousand or so. Even a few thousand short text lines would take only a handful of kB, hardly a dent in the /home partition. Even better if you can compile busybox ash to observe HISTFILESIZE or similar, to allow setting this at runtime.
(In reply to comment #0) > As far as I know, changing this may require recompiling busybox ash with a new > setting. Yes, it's a compile-time option (CONFIG_FEATURE_EDITING_HISTORY). > I'd propose increasing this to a reasonable number, preferably a few > thousand or so. Even a few thousand short text lines would take only a > handful of kB, hardly a dent in the /home partition. It also affects the root fs (user root) and RAM usage, but a few hundred entries at least shouldn't have much impact.
(Still valid in Harmattan currently.)
Upstream patch at http://git.busybox.net/busybox/commit/?id=2c4de5b045a79db73052d5b865474a00c9a87e99 was applied to Nokia's internal Harmattan (the software version after Maemo5) builds and verified. According to Nokia this unfortunately is a WONTFIX for Maemo5, however this could get included by the CSSU updates (=> requires bug report against "Maemo 5 Community Updates" product here).
(In reply to comment #3) > Upstream patch at > http://git.busybox.net/busybox/commit/?id=2c4de5b045a79db73052d5b865474a00c9a87e99 > was applied to Nokia's internal Harmattan (the software version after Maemo5) > builds and verified. > According to Nokia this unfortunately is a WONTFIX for Maemo5, however this > could get included by the CSSU updates (=> requires bug report against "Maemo 5 > Community Updates" product here). Filed as bug 12211.