Closed 400thecat closed 8 months ago
I don't use mc and am not going to, but I have looked it up online. It looks like it displays a little shell prompt at the bottom. I'm guessing that when you run mc it invisibly executes those commands in an interactive shell, so they get put into the history.
It looks like mc does this using a zsh feature where commands that start with whitespace don't go into the normal history. I haven't replicated this because I don't care about it, but you could easily reproduce it yourself by amending _BORING_COMMANDS
in sqlite-history.zsh
to contain the regex for matching whitespace at the start of a string "^ "
or maybe "^ .+$"
.
ps. this is a really low-quality bug report, you will generally get better results by showing some effort / describing what you've already tried / what you expect to happen / why.
this is histdb output after I have started mc, and opened some jpg file in mc: