Support for bash-like HISTCONTROL or zsh-like HIST_IGNORE_SPACE

"Yury V. Zaytsev" <[email protected]> Sun, 6 Oct 2024 19:07:14 +0200
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Hello,

I would like to ask if there is any interest as far as dash maintainers are concerned in adding a way to prevent individual commands from being stored in the shell history?

I'm the maintainer of Midnight Commander, and both the shells we provide first-class support for (bash, zsh) and some others (fish) allow you to exclude individual commands from being added to the shell history. Unfortunately, when we added support for ash & dash, we could only do so in a way that clobbers the user's history with our internal shell communication, because we don't know of a way to make sure that the commands we send to the shell are not recorded.

I've sent a PoC patch to implement basic support for HISTCONTROL to the BusyBox maintainers, but haven't heard back from them yet. I was wondering what your position would be on this?

P.S. Please keep me on CC, I'm not subscribed to the list. Many thanks!

-- 
Sincerely yours,
Yury V. Zaytsev