Increasing history size of Busybox's Ash shell

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Sat May 13, 2023 10:13    Post subject: Increasing history size of Busybox's Ash shell Reply with quote
Search · CONFIG_FEATURE_EDITING_HISTORY · GitHub
https://github.com/mirror/dd-wrt/search?q=CONFIG_FEATURE_EDITING_HISTORY

Could the value of CONFIG_FEATURE_EDITING_HISTORY be increased from "15" to maybe "30" if not "45"? Shoudn't consume too much memory...


Related discussion:

DD-WRT :: View topic - How Do You Increase Command Line History
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=317555&view=next&sid=e8b1dbfe77c0eb98bddd5393a4102f34

DD-WRT :: View topic - save shell history
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=311267&sid=f1329aa96374b1d36633724630a2f6bf

DD-WRT :: View topic - Terminal (shell) saves no history so I can repeat commands
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=752573

Reference:

New Busybox ash history working bad « SliTaz Forum
https://forum.slitaz.org/topic/new-busybox-ash-history-working-bad

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1935

PostPosted: Sat May 13, 2023 15:41    Post subject: Reply with quote
I usually set shell history to 0 (send it to /dev/null) for security reasons on desktop linux.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1857
Location: Hung Hom, Hong Kong

PostPosted: Sat May 13, 2023 17:27    Post subject: Reply with quote
dale_gribble39 wrote:
I usually set shell history to 0 (send it to /dev/null) for security reasons on desktop linux.

I suepect Busybox's Ash in DD-WRT does not allow us to alter history size AFTER compiling. But it's a good measure.

Does Ash support a logout script? That's where you can clear everything automatically.

In my RT-N18U, no history was saved after any Ash sessions(e.g. SSH).

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum